]> granicus.if.org Git - python/commit
Removed obsolete exception PyExc_AccessError.
authorBarry Warsaw <barry@python.org>
Fri, 29 Aug 1997 22:13:51 +0000 (22:13 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 29 Aug 1997 22:13:51 +0000 (22:13 +0000)
commit757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5
tree3e498ed3ff9aa2e2c38f4d50238d7f1488d59e6b
parent035574d755bfc306704e9975dc10e4e05a47b3bb
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.
Python/bltinmodule.c