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
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
Changes by Walter Mundt :
--
components: +Library (Lib)
type: -> behavior
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue15112>
___
_
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
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