]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
initerrors(): Remove this function. String-based standard exceptions
authorBarry Warsaw <barry@python.org>
Tue, 2 May 2000 19:24:06 +0000 (19:24 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 2 May 2000 19:24:06 +0000 (19:24 +0000)
commit47eeb9bdadbddb9d0d83c33415164eff10756bc4
treefb9a0a6dc571d109a4d33ba5b52647da5df8a543
parent57e11ae8472df1dd20c74ce9f37840896d96205d
initerrors(): Remove this function.  String-based standard exceptions
are no longer supported (i.e. -X option is removed).

_PyBuiltin_Init_1(): Don't call initerrors().  This does mean that it
is possible to raise an ImportError before that exception has been
initialized, say because exceptions.py can't be found, or contains
bogosity.  See changes to errors.c for how this is handled.

_PyBuiltin_Init_2(): Don't test Py_UseClassExceptionsFlag, just go
ahead and initialize the class-based standard exceptions.  If this
fails, we throw a Py_FatalError.
Python/bltinmodule.c