summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-01-13 13:59:22 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-01-13 13:59:22 (GMT)
commitc1dd174682e1bce7044ae993bfadc3a042a53ed6 (patch)
tree88ade47dcbeda6f3558bc68730448cabe2b836c8 /Doc/whatsnew
parent2bd1568d35d4a7466a5bd1d379ae04c2cdec8803 (diff)
downloadcpython-c1dd174682e1bce7044ae993bfadc3a042a53ed6.zip
cpython-c1dd174682e1bce7044ae993bfadc3a042a53ed6.tar.gz
cpython-c1dd174682e1bce7044ae993bfadc3a042a53ed6.tar.bz2
Link to MRO article
Mention deprecation of string exceptions
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/whatsnew23.tex10
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/whatsnew/whatsnew23.tex b/Doc/whatsnew/whatsnew23.tex
index c97a544..26a8e30 100644
--- a/Doc/whatsnew/whatsnew23.tex
+++ b/Doc/whatsnew/whatsnew23.tex
@@ -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.