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

Walter Dörwald walter@livinglogic.de
Thu, 12 Dec 2002 20:24:40 +0100


M.-A. Lemburg wrote:

> Walter Dörwald wrote:
> 
>> lemburg@users.sourceforge.net wrote:
>>
>>> Modified Files:
>>>     codecs.py Log Message:
>>> Patch to make _codecs a builtin module. This is necessary since
>>> Python 2.3 will support source code encodings which rely on the
>>> builtin codecs being available to the parser.
>>
>>
>>
>> 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...

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

Bye,
    Walter Dörwald