[issue9161] add_option in optparse no longer accepts unicode string

2012-08-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffd70c371fee by R David Murray in branch '2.7': #9161: Fix test to use standard optparse test pattern (what was I thinking?) http://hg.python.org/cpython/rev/ffd70c371fee -- ___ Python tracker

[issue9161] add_option in optparse no longer accepts unicode string

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Thanks! -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9161] add_option in optparse no longer accepts unicode string

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c86a860e3d2 by R David Murray in branch '2.7': #9161: add test for the bug fixed by r82581. http://hg.python.org/cpython/rev/4c86a860e3d2 -- nosy: +python-dev ___ Python tracker

[issue9161] add_option in optparse no longer accepts unicode string

2012-08-13 Thread Michael Johnson
Michael Johnson added the comment: Huh, let me try that again! I'm not sure how the attachment got dropped. -- keywords: +patch Added file: http://bugs.python.org/file26793/issue9161_test.diff ___ Python tracker ___

[issue9161] add_option in optparse no longer accepts unicode string

2012-08-13 Thread R. David Murray
R. David Murray added the comment: @Michael: Thanks for working on this. I don't see a patch attached to the issue, though. -- ___ Python tracker ___ ___

[issue9161] add_option in optparse no longer accepts unicode string

2012-07-27 Thread Michael Johnson
Michael Johnson added the comment: Created a unit test for the patch that was committed in r82581. I can easily add the test to argparse too, if needed; I didn't see any tests related to Unicode in there. -- nosy: +mjjohnson ___ Python tracker

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread R. David Murray
R. David Murray added the comment: Regression fixed in r82581. It would be nice to have a unit test, so I'm leaving this open to see if anyone wants to contribute one (it could probably be reused for argparse if argparse doesn't already have such a test). --

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread R. David Murray
R. David Murray added the comment: Too bad you didn't find this on one of the RCs. The fix will have to wait for 2.7.1 now. The line you originally quote as changing was, as far as I can tell, the original code (it enters our repository on 2006-04-22 in r45654 when optparse was upgraded to

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> unit test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok stage: unit test needed -> type: behavior -> ___ Python tracker ___ ___ Python-bugs-list ma

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Craig McQueen
Craig McQueen added the comment: To further explain, I had code e.g.: parser.add_option(u'-s', u'--seqfile', dest='seq_file_name', help=u'Write sequence file output to FILE', metavar=u'FILE') I had to remove the unicode designator for the first parameter: parser.add_option('-s', u'--s

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-04 Thread Craig McQueen
Craig McQueen added the comment: My program currently uses ASCII options, so I can change the Unicode string parameter to byte string. The optparse module still seems to match the option against the incoming Unicode argv, I guess by implicit string conversion. --

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib), Unicode nosy: +ezio.melotti stage: -> unit test needed type: -> behavior ___ Python tracker ___

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-04 Thread Craig McQueen
New submission from Craig McQueen : Working in Japan, I find it very helpful to be able to read full Unicode arguments in Python 2.x under Windows 2000/XP. So I am using the following: http://stackoverflow.com/questions/846850/how-to-read-unicode-characters-from-command-line-arguments-in-python