Antoine Pitrou <pit...@free.fr> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6504>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to