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 pitrou
Recipients georg.brandl, kaizhu, pitrou
Date 2009-07-19.10:23:25
SpamBayes Score 0.00013948014
Marked as misclassified No
Message-id <1247999007.5.0.741332807082.issue6504@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, we conditionally import the "locale" module in order to guess the
encoding when it is not specified by the caller. We can't import it at
module initialization time because it would cause bootstrapping issues.

The Python equivalent of the logic expressed in C code in the _io module
can be found here:
http://code.python.org/hg/branches/py3k/file/51117227ac82/Lib/_pyio.py#l1410
History
Date User Action Args
2009-07-19 10:23:27pitrousetrecipients: + pitrou, georg.brandl, kaizhu
2009-07-19 10:23:27pitrousetmessageid: <1247999007.5.0.741332807082.issue6504@psf.upfronthosting.co.za>
2009-07-19 10:23:25pitroulinkissue6504 messages
2009-07-19 10:23:25pitroucreate