Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c1dd1746
Commit
c1dd1746
authored
Jan 13, 2003
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link to MRO article
Mention deprecation of string exceptions
parent
2bd1568d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Doc/whatsnew/whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+8
-2
No files found.
Doc/whatsnew/whatsnew23.tex
View file @
c1dd1746
...
...
@@ -1054,6 +1054,10 @@ check for use of features that will be deprecated in the future,
supply
\programopt
{
-Walways::PendingDeprecationWarning::
}
on the
command line or use
\function
{
warnings.filterwarnings()
}
.
\item
The process of deprecating string-based exceptions, as
in
\code
{
raise "Error occurred"
}
, has begun. Raising a string will
now trigger
\exception
{
PendingDeprecationWarning
}
.
\item
Using
\code
{
None
}
as a variable name will now result in a
\exception
{
SyntaxWarning
}
warning. In a future version of Python,
\code
{
None
}
may finally become a keyword.
...
...
@@ -1065,8 +1069,10 @@ this change.) Python 2.2 originally used a topological sort of a
class's ancestors, but 2.3 now uses the C3 algorithm as described in
the paper
\ulink
{
``A Monotonic Superclass Linearization for
Dylan''
}{
http://www.webcom.com/haahr/dylan/linearization-oopsla96.html
}
.
To understand the motivation for this change, read the thread on
python-dev starting with the message at
To understand the motivation for this change,
read Michele Simionato's article
\ulink
{
``Python 2.3 Method Resolution Order''
}{
http://www.phyast.pitt.edu/~micheles/mro.html
}
, or
read the thread on python-dev starting with the message at
\url
{
http://mail.python.org/pipermail/python-dev/2002-October/029035.html
}
.
Samuele Pedroni first pointed out the problem and also implemented the
fix by coding the C3 algorithm.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment