[issue3080] Full unicode import system

STINNER Victor report at bugs.python.org
Thu Jan 20 14:52:14 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> Use "U" format to parse a module name, and "%R" to format a module name
> (to escape surrogates characters and add quotes, instead of 
> "... '%.200s' ...").

See also #8754: repr() is better than str() for other reasons, eg. to see a space at the end of a module name (__import__('space ')) thanks to the quotes.

----------

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


More information about the Python-bugs-list mailing list