[issue25581] Python -U raises error during site import

R. David Murray report at bugs.python.org
Sat Nov 7 21:10:23 EST 2015


R. David Murray added the comment:

Interesting, I didn't even know (remember?) about the -U flag, and it isn't documented.  I guess we don't test it, and I suppose that it is effectively deprecated.  (So others who don't remember don't need to repeat my research: it turns all string literals into unicode literals, which function was added as an experimental tool by Marc Andre in 2000.  I believe it was later superseded by 'from __future__ import unicode_literals', but I didn't research that part.)

This works fine on linux, and the traceback looks like it involves some windows-specific code. 

I'm not sure if this is worth bothering to fix.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list