]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
pyexpat.errors is a *strange* module!
authorFred Drake <fdrake@acm.org>
Tue, 4 Jul 2000 23:51:31 +0000 (23:51 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 4 Jul 2000 23:51:31 +0000 (23:51 +0000)
commit7bd9f41c65f5078279333dcd2bd07fa5bc5ebc11
tree228c70b0cd2a16769b3f8afb39805bf9df51cbee
parentf93cb1875c9b3d47a77c3ab3b035e1a2c588c952
pyexpat.errors is a *strange* module!

It gets initialized when pyexpat is imported, and is only accessible as an
attribute of pyexpat; it cannot be imported itself.  This allows it to at
least be importable after pyexpat itself has been imported by adding it
to sys.modules, so it is not quite as strange.

This arrangement needs to be better thought out.
Modules/pyexpat.c