<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/argparse.py, branch v3.3.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/argparse.py?h=v3.3.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/argparse.py?h=v3.3.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2012-09-12T19:31:38Z</updated>
<entry>
<title>Merge 3.2 fix updates and tests for issue #15906.</title>
<updated>2012-09-12T19:31:38Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2012-09-12T19:31:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d89774e1581ad2ca03ba06876d0fe4f2a2d8ff91'/>
<id>urn:sha1:d89774e1581ad2ca03ba06876d0fe4f2a2d8ff91</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update merge from 2.7: s/basetring/str</title>
<updated>2012-09-12T18:42:34Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2012-09-12T18:42:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2dceb359cb0353d4f327fc36be27e67a3e94566e'/>
<id>urn:sha1:2dceb359cb0353d4f327fc36be27e67a3e94566e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>A follow up for issue #15906: change the test for calling the type conversion</title>
<updated>2012-09-12T18:34:50Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2012-09-12T18:34:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eaae1b76aecd2c2fc1cf1aa1578db69e7d1464e6'/>
<id>urn:sha1:eaae1b76aecd2c2fc1cf1aa1578db69e7d1464e6</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>- Issue #15906: Fix a regression in argparse caused by the preceding change,</title>
<updated>2012-09-12T04:12:29Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2012-09-12T04:12:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0ae066b28141ec96504f30eb2a32206896853935'/>
<id>urn:sha1:0ae066b28141ec96504f30eb2a32206896853935</id>
<content type='text'>
  when action='append', type='str' and default=[].
</content>
</entry>
<entry>
<title>- Issue #15906: Fix a regression in argparse caused by the preceding change,</title>
<updated>2012-09-12T02:38:47Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2012-09-12T02:38:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4b2f9e914d497d6b2b5ec09a03da8b6f171dffed'/>
<id>urn:sha1:4b2f9e914d497d6b2b5ec09a03da8b6f171dffed</id>
<content type='text'>
  when action='append', type='str' and default=[].
</content>
</entry>
<entry>
<title>merge #15847: allow args to be a tuple in parse_args</title>
<updated>2012-09-08T16:14:25Z</updated>
<author>
<name>R David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2012-09-08T16:14:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=63755f3bd94c7e193a44324d3248b2478cbf47fc'/>
<id>urn:sha1:63755f3bd94c7e193a44324d3248b2478cbf47fc</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>#15847: allow args to be a tuple in parse_args</title>
<updated>2012-09-08T16:08:01Z</updated>
<author>
<name>R David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2012-09-08T16:08:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b522828d2a6bdc4438441eda837a696851ba4263'/>
<id>urn:sha1:b522828d2a6bdc4438441eda837a696851ba4263</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Merge #12776,#11839: call argparse type function only once.</title>
<updated>2012-09-01T03:09:34Z</updated>
<author>
<name>R David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2012-09-01T03:09:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=64b0ef15097017b20b1edca1d3bc1e38d51feb10'/>
<id>urn:sha1:64b0ef15097017b20b1edca1d3bc1e38d51feb10</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>#12776,#11839: call argparse type function only once.</title>
<updated>2012-09-01T02:45:20Z</updated>
<author>
<name>R David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2012-09-01T02:45:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6fb8fb17bff87fdd5e738430502f34f8729766e3'/>
<id>urn:sha1:6fb8fb17bff87fdd5e738430502f34f8729766e3</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Merge #13922: argparse no longer incorrectly strips '--' after the first one.</title>
<updated>2012-07-22T02:56:49Z</updated>
<author>
<name>R David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2012-07-22T02:56:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=45ccf032beb03aab5e35b1ae6b1c38252506fde0'/>
<id>urn:sha1:45ccf032beb03aab5e35b1ae6b1c38252506fde0</id>
<content type='text'>
Patch by Jeff Knupp.
</content>
</entry>
</feed>
