| Commit message (Collapse) | Author | Age | Files | Lines | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
on the action's default, reverting it back to previous behavior.  Conversion
is only done on string defaults.
Add a test for this and another test that ensures such type conversions are
only called once.
 | 
| | 
| 
| 
|  | 
when action='append', type='str' and default=[].
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
This fixes a regression introduced by the fix for issue #13922.  Although args
is not documented as being allowed to be a tuple, previously this worked and
so naturally there are programs in the field that depend on it.
Patch by Zbyszek Jędrzejewski-Szmek.
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
Before, the type function was called twice in the case where the default
was specified and the argument was given as well.  This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
 | 
| | 
| 
| 
|  | 
Patch by Jeff Knupp.
 | 
| | 
| 
| 
|  | 
Patch by Torsten Landschoff.
 | 
| | 
| 
| 
|  | 
in comparison string that argparse does not add when program name is blank.
 | 
| | 
| 
| 
|  | 
Patch written by Arfrever Frehtes Taifersar Arahesis.
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
from 3.2.)
 | 
| | 
| 
| 
|  | 
(Merge from 3.2.)
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
86542,87136,87216,87221,87228,87256,87337-87338,87372,87516,87571,88164 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86542 | r.david.murray | 2010-11-19 22:48:58 -0500 (Fri, 19 Nov 2010) | 2 lines
  Make test class name unique so that both test classes run.
........
  r87136 | r.david.murray | 2010-12-08 17:53:00 -0500 (Wed, 08 Dec 2010) | 6 lines
  Have script_helper._assert_python strip refcount strings from stderr.
  This makes the output of the function and those that depend on it
  independent of whether or not they are being run under a debug
  build.
........
  r87216 | r.david.murray | 2010-12-13 17:50:30 -0500 (Mon, 13 Dec 2010) | 2 lines
  #10698: fix typo in example.
........
  r87221 | r.david.murray | 2010-12-13 19:55:46 -0500 (Mon, 13 Dec 2010) | 4 lines
  #10699: fix docstring for tzset: it does not take a parameter
  Thanks to Garrett Cooper for the fix.
........
  r87228 | r.david.murray | 2010-12-13 21:25:43 -0500 (Mon, 13 Dec 2010) | 2 lines
  Turn on regrtest -W (rerun immediately) option for Windows, too.
........
  r87256 | r.david.murray | 2010-12-14 21:19:14 -0500 (Tue, 14 Dec 2010) | 2 lines
  #10705: document what the values of debuglevel are and mean.
........
  r87337 | r.david.murray | 2010-12-17 11:11:40 -0500 (Fri, 17 Dec 2010) | 2 lines
  #10559: provide instructions for accessing sys.argv when first mentioned.
........
  r87338 | r.david.murray | 2010-12-17 11:29:07 -0500 (Fri, 17 Dec 2010) | 2 lines
  #10454: clarify the compileall docs and help messages.
  [changes to compileall.py were not backported, only the doc changes]
........
  r87372 | r.david.murray | 2010-12-18 11:39:06 -0500 (Sat, 18 Dec 2010) | 2 lines
  #10728: the default for printing help is sys.stdout, not stderr.
........
  r87516 | r.david.murray | 2010-12-27 15:09:32 -0500 (Mon, 27 Dec 2010) | 5 lines
  #7056: runtest and runtest_inner don't use testdir, so drop it from their sigs
  I've only tested regular runs and -j runs.  If I've broken anything
  else I'm sure I'll hear about it sooner or later.
........
  r87571 | r.david.murray | 2010-12-29 14:06:48 -0500 (Wed, 29 Dec 2010) | 2 lines
  Fix same typo in docs.
........
  r88164 | r.david.murray | 2011-01-24 14:34:58 -0500 (Mon, 24 Jan 2011) | 12 lines
  #10960: fix 'stat' links, link to lstat from stat, general tidy of stat doc.
  Original patch by Michal Nowikowski, with some additions and wording
  fixes by me.
  I changed the wording from 'Performs a stat system call' to 'Performs
  the equivalent of a stat system call', since on Windows there are no
  stat/lstat system calls involved.  I also extended Michal's breakout
  of the attributes into a list to the other paragraphs, and rearranged
  the order of the paragraphs in the 'stat' docs to make it flow
  better and put it in what I think is a more logical/useful order.
........
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
argparse.FileType. Approved by Georg in the tracker.
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line
  #9424: Replace deprecated assert* methods in the Python test suite.
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86111 | steven.bethard | 2010-11-02 13:47:22 +0100 (Tue, 02 Nov 2010) | 1 line
  Fix bug 9340 - argparse parse_known_args didn't work with subparsers
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86092 | steven.bethard | 2010-11-01 17:29:26 +0100 (Mon, 01 Nov 2010) | 1 line
  Fix for issue 9355 where with multiple mutually exclusive arguments, some brackets were being lost in the usage messages
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86090 | steven.bethard | 2010-11-01 16:57:36 +0100 (Mon, 01 Nov 2010) | 1 line
  Fix bug 9352 where characters were being lost in parsing some short options
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86086 | steven.bethard | 2010-11-01 16:23:12 +0100 (Mon, 01 Nov 2010) | 1 line
  Get argparse.__all__ back up to date (issue 9353)
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86080 | steven.bethard | 2010-11-01 14:56:09 +0100 (Mon, 01 Nov 2010) | 1 line
  Unset COLUMNS for test_argparse (and restore afterwards) (issue 9553)
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r85497 | antoine.pitrou | 2010-10-14 23:15:17 +0200 (jeu., 14 oct. 2010) | 3 lines
  Explicitly close some files (from issue #10093)
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r83675 | r.david.murray | 2010-08-03 13:56:09 -0400 (Tue, 03 Aug 2010) | 12 lines
  #9444: use first of prefix_chars for help opt instead of raising error
  An argparse option parser created with a prefix_chars that did not
  include a '-' would happily add -h and --help options, and then throw
  an error when it tried to format the help because the - was an invalid
  prefix character.  This patch makes it use the first character of
  prefix_chars as the character for the help options if and only if '-'
  is not one of the valid prefix_chars.
  Fix by Theodore Turocy, unit tests by Catherine Devlin.
........
 | 
| | 
| 
| 
|  | 
http://mail.python.org/pipermail/python-dev/2010-May/100231.html
 | 
| | 
| 
| 
|  | 
test_multiprocessing on Windows. Issue 8333.
 | 
| | 
| 
| 
|  | 
assertRaises context manager to simplify some tests.
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
|   
  
  
  
   | 
Docs still need some updating to make getopt and optparse match the wording promised in the PEP.
There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.
 |