Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a15980

Browse files
committed
Note that NameError's message also changed in 2.0
1 parent e7bd876 commit 2a15980

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Doc/whatsnew/whatsnew20.tex

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -766,10 +766,12 @@ \section{Porting to 2.0}
766766
'x' and take the lowest 8 bits of the result, so \code{\e x123456} was
767767
equivalent to \code{\e x56}.
768768

769-
The \exception{AttributeError} exception has a more friendly error message,
770-
whose text will be something like \code{'Spam' instance has no attribute 'eggs'}.
771-
Previously the error message was just the missing attribute name \code{eggs}, and
772-
code written to take advantage of this fact will break in 2.0.
769+
The \exception{AttributeError} and \exception{NameError} exceptions
770+
have a more friendly error message, whose text will be something like
771+
\code{'Spam' instance has no attribute 'eggs'} or \code{name 'eggs' is
772+
not defined}. Previously the error message was just the missing
773+
attribute name \code{eggs}, and code written to take advantage of this
774+
fact will break in 2.0.
773775

774776
Some work has been done to make integers and long integers a bit more
775777
interchangeable. In 1.5.2, large-file support was added for Solaris,
@@ -1325,9 +1327,9 @@ \section{Deleted and Deprecated Modules}
13251327
\section{Acknowledgements}
13261328
13271329
The authors would like to thank the following people for offering
1328-
suggestions on various drafts of this article: David Bolen, Mark Hammond, Gregg Hauser,
1329-
Jeremy Hylton, Fredrik Lundh, Detlef Lannert, Aahz Maruch, Skip
1330-
Montanaro, Vladimir Marangozov, Guido van Rossum, Neil Schemenauer,
1331-
and Russ Schmidt.
1330+
suggestions on various drafts of this article: David Bolen, Mark
1331+
Hammond, Gregg Hauser, Jeremy Hylton, Fredrik Lundh, Detlef Lannert,
1332+
Aahz Maruch, Skip Montanaro, Vladimir Marangozov, Tobias Polzin, Guido
1333+
van Rossum, Neil Schemenauer, and Russ Schmidt.
13321334
13331335
\end{document}

0 commit comments

Comments
 (0)