[issue25581] Python -U raises error during site import

2015-11-08 Thread SilentGhost
SilentGhost added the comment: > Interesting, I didn't even know (remember?) about the -U flag, and it isn't > documented. https://docs.python.org/2/using/cmdline.html#cmdoption-U It isn't clear when this broken or why, but I think existing documentation could be adjusted to have a bigger warn

[issue25581] Python -U raises error during site import

2015-11-08 Thread STINNER Victor
STINNER Victor added the comment: Reminder: use Python 3 to get an excellent Unicode support everywhere. -- ___ Python tracker ___ ___

[issue25581] Python -U raises error during site import

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is worse, you write a string literal with a 'b' prefix, and you get a Unicode string. >>> b'' u'' I tried to use Python with -U (it could be good way to test compatibility with Python 3), but it is totally broken, and there is no hope to fix it. -

[issue25581] Python -U raises error during site import

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Well, in this case *he* didn't write the string, it is embedded somewhere in the stdlib. 'python -U' gets you to the python prompt on unix, but apparently not on windows. But this isn't a feature we support any more, so I'm closing this as won't fix. --

[issue25581] Python -U raises error during site import

2015-11-07 Thread Matthew Barnett
Matthew Barnett added the comment: So, you write a string literal without a 'u' (or 'b') prefix, and there's no 'from __future__ import unicode_literals' in the module, so you expect it to be a bytestring, but it's not, it's a Unicode string. I'm not surprised that something breaks! -

[issue25581] Python -U raises error during site import

2015-11-07 Thread R. David Murray
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 i

[issue25581] Python -U raises error during site import

2015-11-07 Thread SilentGhost
Changes by SilentGhost : -- components: +Unicode nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue25581] Python -U raises error during site import

2015-11-07 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows -Interpreter Core, Regular Expressions nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ _

[issue25581] Python -U raises error during site import

2015-11-07 Thread ppperry
Changes by ppperry : -- components: +Interpreter Core, Library (Lib), Regular Expressions nosy: +ezio.melotti, mrabarnett title: Python -U fails with traceback -> Python -U raises error during site import type: -> behavior versions: +Python 2.7 ___