This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients amaury.forgeotdarc, benjamin.peterson, djc, grahamd, loewis
Date 2008-10-17.15:47:27
SpamBayes Score 6.667178e-11
Marked as misclassified No
Message-id <1224258449.53.4.38721844216e-05.issue3723@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch that fixed importexc.c. It consists of the following parts:
- set m_size of the builtins module and the sys module to -1, indicating
that these modules don't support repeated initialization. This should be
reviewed; perhaps it's better (and necessary) to record the init
function not only for dynamically-loaded modules in m_init, but also for
statically linked ones, so that the reinit code can call them again
(whether or not it is safe to call them again for sys and builtins
should then be studied).
- add a field to the interpreter state indicating that the codecs are
not ready. when trying to use the file system encoding in this state,
use ASCII instead.
- Fix importexc to use the types module.
History
Date User Action Args
2008-10-17 15:47:29loewissetrecipients: + loewis, amaury.forgeotdarc, benjamin.peterson, djc, grahamd
2008-10-17 15:47:29loewissetmessageid: <1224258449.53.4.38721844216e-05.issue3723@psf.upfronthosting.co.za>
2008-10-17 15:47:28loewislinkissue3723 messages
2008-10-17 15:47:28loewiscreate