]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PEP 352 implementation. Creates a new base class, BaseException, which has an
authorBrett Cannon <bcannon@gmail.com>
Wed, 1 Mar 2006 04:25:17 +0000 (04:25 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 1 Mar 2006 04:25:17 +0000 (04:25 +0000)
commitbf36409e2a8171b441d5e0a2f1c9e02d31a35ae8
tree7456cf3d197d6f0dc017b0f851878bcaf6024f6c
parent762467475d944f67ac20bf23c6c5144a6e39feae
PEP 352 implementation.  Creates a new base class, BaseException, which has an
added message attribute compared to the previous version of Exception.  It is
also a new-style class, making all exceptions now new-style.  KeyboardInterrupt
and SystemExit inherit from BaseException directly.  String exceptions now
raise DeprecationWarning.

Applies patch 1104669, and closes bugs 1012952 and 518846.
16 files changed:
Include/pyerrors.h
Lib/test/exception_hierarchy.txt [new file with mode: 0644]
Lib/test/output/test_logging
Lib/test/test_coercion.py
Lib/test/test_descr.py
Lib/test/test_exceptions.py
Lib/test/test_pep352.py [new file with mode: 0644]
Lib/traceback.py
Lib/warnings.py
Misc/NEWS
Objects/genobject.c
Python/ceval.c
Python/codecs.c
Python/errors.c
Python/exceptions.c
Python/pythonrun.c