Skip to content

Commit c1dd174

Browse files
committed
Link to MRO article
Mention deprecation of string exceptions
1 parent 2bd1568 commit c1dd174

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Doc/whatsnew/whatsnew23.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,10 @@ \section{Other Language Changes}
10541054
supply \programopt{-Walways::PendingDeprecationWarning::} on the
10551055
command line or use \function{warnings.filterwarnings()}.
10561056

1057+
\item The process of deprecating string-based exceptions, as
1058+
in \code{raise "Error occurred"}, has begun. Raising a string will
1059+
now trigger \exception{PendingDeprecationWarning}.
1060+
10571061
\item Using \code{None} as a variable name will now result in a
10581062
\exception{SyntaxWarning} warning. In a future version of Python,
10591063
\code{None} may finally become a keyword.
@@ -1065,8 +1069,10 @@ \section{Other Language Changes}
10651069
class's ancestors, but 2.3 now uses the C3 algorithm as described in
10661070
the paper \ulink{``A Monotonic Superclass Linearization for
10671071
Dylan''}{http://www.webcom.com/haahr/dylan/linearization-oopsla96.html}.
1068-
To understand the motivation for this change, read the thread on
1069-
python-dev starting with the message at
1072+
To understand the motivation for this change,
1073+
read Michele Simionato's article
1074+
\ulink{``Python 2.3 Method Resolution Order''}{http://www.phyast.pitt.edu/~micheles/mro.html}, or
1075+
read the thread on python-dev starting with the message at
10701076
\url{http://mail.python.org/pipermail/python-dev/2002-October/029035.html}.
10711077
Samuele Pedroni first pointed out the problem and also implemented the
10721078
fix by coding the C3 algorithm.

0 commit comments

Comments
 (0)