Kaydet (Commit) e48daea2 authored tarafından Ezio Melotti's avatar Ezio Melotti

#14034: added the argparse tutorial. Patch by Tshepang Lekhonkhobe.

üst 9f9970b1
This diff is collapsed.
...@@ -28,4 +28,5 @@ Currently, the HOWTOs are: ...@@ -28,4 +28,5 @@ Currently, the HOWTOs are:
unicode.rst unicode.rst
urllib2.rst urllib2.rst
webservers.rst webservers.rst
argparse.rst
...@@ -12,6 +12,12 @@ ...@@ -12,6 +12,12 @@
-------------- --------------
.. sidebar:: Tutorial
This page contains the API reference information. For a more gentle
introduction to Python command-line parsing, have a look at the
:ref:`argparse tutorial <argparse-tutorial>`.
The :mod:`argparse` module makes it easy to write user-friendly command-line The :mod:`argparse` module makes it easy to write user-friendly command-line
interfaces. The program defines what arguments it requires, and :mod:`argparse` interfaces. The program defines what arguments it requires, and :mod:`argparse`
will figure out how to parse those out of :data:`sys.argv`. The :mod:`argparse` will figure out how to parse those out of :data:`sys.argv`. The :mod:`argparse`
......
...@@ -500,6 +500,7 @@ Joerg Lehmann ...@@ -500,6 +500,7 @@ Joerg Lehmann
Robert Lehmann Robert Lehmann
Petri Lehtinen Petri Lehtinen
Luke Kenneth Casson Leighton Luke Kenneth Casson Leighton
Tshepang Lekhonkhobe
Marc-Andre Lemburg Marc-Andre Lemburg
John Lenton John Lenton
Christopher Tur Lesniewski-Laas Christopher Tur Lesniewski-Laas
......
...@@ -148,6 +148,11 @@ Build ...@@ -148,6 +148,11 @@ Build
- Issue #14437: Fix building the _io module under Cygwin. - Issue #14437: Fix building the _io module under Cygwin.
Documentation
-------------
- Issue #14034: added the argparse tutorial.
What's New in Python 2.7.3 release candidate 2? What's New in Python 2.7.3 release candidate 2?
=============================================== ===============================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment