[issue14174] argparse.REMAINDER fails to parse remainder correctly

2013-01-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: See also issue 17050 for a reduced/simple case where argparse.REMAINDER doesn't work (the case of the first argument being argparse.REMAINDER). -- nosy: +chris.jerdonek ___ Python tracker

[issue17050] argparse.REMAINDER doesn't work as first argument

2013-01-27 Thread Chris Jerdonek
New submission from Chris Jerdonek: Works: >>> p = ArgumentParser(prog='test.py') >>> p.add_argument('pos') >>> p.add_argument('remainder', nargs=argparse.REMAINDER) >>> p.parse_args(['abc', '--def']) Namespace(pos='abc', remainder=['--def']) Doesn't work: >>> p = ArgumentParser(prog='test.py'

[issue17048] calendar should understand full- vs. half-width characters

2013-01-27 Thread Robert Xiao
Robert Xiao added the comment: This is also a problem in Python 2.7 after the patch in issue17049 is applied. -- versions: +Python 2.7 ___ Python tracker ___

[issue17049] calendar throws UnicodeEncodeError when locale is specified

2013-01-27 Thread Robert Xiao
New submission from Robert Xiao: Try this at a command-prompt: $ python -m calendar -L ja_JP --encoding utf8 The result is a crash: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__ma

[issue17047] Fix double double words words

2013-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And yet some: Mac/README:40: Create a universal binary build of of Python. This can be used with both Misc/HISTORY:781: some also support accepting an open file descriptor in place of of a path Misc/HISTORY:1415: trying to set a non-binary value as a comm

[issue17048] calendar should understand full- vs. half-width characters

2013-01-27 Thread Robert Xiao
New submission from Robert Xiao: Try this at your command-prompt (requires utf8 support in the terminal emulator): $ python3 -m calendar -L zh_CN -e utf8 The result is a mess like this: 2013 一月二月三月 一

[issue17047] Fix double double words words

2013-01-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In additional to changeset 07488c3c85f1, here are yet some possible word duplications: Lib/_pyio.py:306:Change the stream position to byte offset offset. offset is Lib/concurrent/futures/_base.py:520:fn: A callable that will take take

<    1   2