[Python-checkins] python/dist/src/Lib codecs.py,1.29,1.30

M.-A. Lemburg mal@lemburg.com
2002年12月12日 20:55:59 +0100


Walter D=F6rwald wrote:
> M.-A. Lemburg wrote:
>>> I wonder whether this change requires additional changes to
>>> Python/pythonrun.c (i.e. a call to _PyImport_FixupExtension)
>>> just like it was done for the exceptions module
>>> (see www.python.org/sf/422004)
>>>> I don't think this is necessary, since _codecs is a helper
>> for codecs.py and only imported by the .py file (unlike
>> exceptions which is imported long before that).
>>>> I'm not 100% sure though...
>=20
>=20
> I'm not sure either, I just remembered that a missing
> _PyImport_FixupExtension call for the exceptions module
> was responsible for problems in mod_python:
> http://www.modpython.org/pipermail/mod_python/2001-June/001445.html

Well, the normal import mechanism calls this API as well
for extension modules, so I think we're safe (see init_builtin()
in import.c).
--=20
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/

AltStyle によって変換されたページ (->オリジナル) /