diff options
author | Barry Warsaw <barry@python.org> | 1997-08-29 22:13:51 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1997-08-29 22:13:51 (GMT) |
commit | 757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5 (patch) | |
tree | 3e498ed3ff9aa2e2c38f4d50238d7f1488d59e6b /Modules/main.c | |
parent | 035574d755bfc306704e9975dc10e4e05a47b3bb (diff) | |
download | cpython-757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5.zip cpython-757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5.tar.gz cpython-757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5.tar.bz2 |
Removed obsolete exception PyExc_AccessError.
Added PyErr_MemoryErrorInst to hold the pre-instantiated instance when
using class based exceptions.
Simplified the creation of all built-in exceptions, both class based
and string based. Actually, for class based exceptions, the string
ones are still created just in case there's a problem creating the
class based ones (so you still get *some* exception handling!). Now
the init and fini functions run through a list of structure elements,
creating the strings (and optionally classes) for every entry.
initerrors(): the new base class exceptions StandardError,
LookupError, and NumberError are initialized when using string
exceptions, to tuples containing the list of derived string
exceptions. This GvR trick enables forward compatibility! One bit of
nastiness is that the C code has to know the inheritance tree embodied
in exceptions.py.
Added the two phase init and fini functions.
Diffstat (limited to 'Modules/main.c')
0 files changed, 0 insertions, 0 deletions