[docs] [issue27387] Thread hangs on str.encode() when locale is not set

STINNER Victor report at bugs.python.org
Mon Jun 27 12:50:39 EDT 2016


STINNER Victor added the comment:

> Maybe it is worth adding a warning to that section of the 2.7 docs about implicit imports in general and encode/decode in particular?

Ok to add a note to str.encode and str.decode methods to explain that
an import is needed the first time that an encoding is used.

I'm not ok for a warning, we should not discourage developers to use
these methods! They are not dangerous by themself.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27387>
_______________________________________


More information about the docs mailing list