Unicode command line parameter missing

Python Versions: 2.5 and trunk Browsing through the code this evening and noticed a discrepancy between the command line parameters listed with --help and those truly available in the code. Namely with the -U Unicode flag.. The -U option was added back in 2000, rev 15296 and mention of it was removed in rev 25288. Should the -U option still be handled from the command line? Python 2.5 Session without flag:
python Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
a = "monty" a 'monty'
Python 2.5 Session with flag:
python -U Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
a = "monty" a u'monty'
Joseph Armbruster

Joseph Armbruster schrieb:
The -U option was added back in 2000, rev 15296 and mention of it was removed in rev 25288. Should the -U option still be handled from the command line?
Yes. The original goal of the -U command line (find out what happens if all strings were unicode) still remains at the moment. It may be sensible to remove it when Python 3 has solved the issue in some other way, but then, removing it may cause unnecessary breakage, so it can just as well stay throughout 2.x. Regards, Martin
participants (2)
-
"Martin v. Löwis"
-
Joseph Armbruster