]> granicus.if.org Git - python/commit
No more raising of string exceptions!
authorBrett Cannon <bcannon@gmail.com>
Tue, 30 Jan 2007 21:34:36 +0000 (21:34 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 30 Jan 2007 21:34:36 +0000 (21:34 +0000)
commit129bd52146c2380a4887c6bbf066113a195c60da
tree9f4a250df8167eae4bb877cb2a3e85bb83b32b0b
parenta05153683c0712ff62d3bdcc33c879dd49ed7ddc
No more raising of string exceptions!

The next step of PEP 352 (for 2.6) causes raising a string exception to trigger
a TypeError.  Trying to catch a string exception raises a DeprecationWarning.
References to string exceptions has been removed from the docs since they are
now just an error.
Doc/lib/libexcs.tex
Doc/ref/ref4.tex
Lib/test/test_pep352.py
Misc/NEWS
Python/ceval.c