[issue16855] traceback module leaves off module name in last line of formatted tracebacks

2013-01-05 Thread Walter Mundt
Walter Mundt added the comment: Thanks for looking into the version applicability. I'd bet that under the covers IDLE is relying on the traceback module too. Anyone have a Windows CPython 2.7.3 and care to check the output of the test code in a cmd window? I originally ran it unind

[issue16855] traceback module leaves off module name in last line of formatted tracebacks

2013-01-03 Thread Walter Mundt
New submission from Walter Mundt: The documentation for the traceback module states that it "exactly mimics the behavior of the Python interpreter when it prints a stack trace." However, this does not seem to be the case. In Python 2.7.3, executing the following: imp

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2012-06-22 Thread Walter Mundt
Changes by Walter Mundt : -- components: +Library (Lib) type: -> behavior versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue15112> ___ _

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2012-06-22 Thread Walter Mundt
Walter Mundt added the comment: Attached is a patch to fix this bug by deferring matching of nargs='*' argument against a zero-length pattern until the end of the arguments list. I believe that it ought to be maximally conservative in that it should not change the behavior of an

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2012-06-19 Thread Walter Mundt
New submission from Walter Mundt : Test case: from argparse import * parser = ArgumentParser() parser.add_argument('-x', action='store_true') parser.add_argument('y') parser.add_argument('z', nargs='*') print parser.par