
http://sf.net/tracker/?func=detail&atid=105470&aid=430269&group_id=5470 python -U breaks import with 2.1 Anyone understand -U? Like, should it work, why is it there if it doesn't and isn't expected to, and are there docs for it beyond the "python -h" blurb? Last mention of it I found in c.l.py was """ Date: Tue, 06 Feb 2001 16:09:46 +0100 From: "M.-A. Lemburg" <mal@lemburg.com> Subject: Re: [Python-Dev] Pre-PEP: Python Character Model ... Well, with -U on, Python will compile "" into u"", ... last I tried, Python didn't even start up :-( ... """ An earlier msg (08 Sep 2000) said: """ Note that many thing fail when Python is started with -U... that switch was introduced to be able to get an idea of which parts of the standard fail to work in a mixed string/Unicode environment. """ If this is just an internal development switch, python -h probably shouldn't advertise it.

"TP" == Tim Peters <tim.one@home.com> writes:
TP> Anyone understand -U? Like, should it work, why is it there TP> if it doesn't and isn't expected to, and are there docs for it TP> beyond the "python -h" blurb? Nope, except that /for me/ an installed Python 2.1 seems to start up just fine with -U. My uninstalled (i.e. run from the source tree) 2.2a0 fails when given -U: @anthem[[~/projects/python:1068]]% ./python Python 2.2a0 (#4, Jun 6 2001, 13:03:36) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "copyright", "credits" or "license" for more information.
-Barry

Tim Peters wrote:
The -U option is there to be able to test drive Python into the Unicode age. As you and many others have noted, there's still a long way to go...
-- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/

Tim Peters wrote:
I guess I just added the flag to the -h message without thinking much about it... it was added in some alpha release. Anyway, these bug reports will keep hitting us which is good in the sense that it'll eventually push Python into the Unicode arena. We could need some funding for this, though. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/

"TP" == Tim Peters <tim.one@home.com> writes:
TP> Anyone understand -U? Like, should it work, why is it there TP> if it doesn't and isn't expected to, and are there docs for it TP> beyond the "python -h" blurb? Nope, except that /for me/ an installed Python 2.1 seems to start up just fine with -U. My uninstalled (i.e. run from the source tree) 2.2a0 fails when given -U: @anthem[[~/projects/python:1068]]% ./python Python 2.2a0 (#4, Jun 6 2001, 13:03:36) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "copyright", "credits" or "license" for more information.
-Barry

Tim Peters wrote:
The -U option is there to be able to test drive Python into the Unicode age. As you and many others have noted, there's still a long way to go...
-- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/

Tim Peters wrote:
I guess I just added the flag to the -h message without thinking much about it... it was added in some alpha release. Anyway, these bug reports will keep hitting us which is good in the sense that it'll eventually push Python into the Unicode arena. We could need some funding for this, though. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/
participants (3)
-
barry@digicool.com
-
M.-A. Lemburg
-
Tim Peters