Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1a2c1fbf
Commit
1a2c1fbf
authored
Jul 21, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14391: clarify docstring discussion of Action's 'type' argument's value.
parent
ac9b5c67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/argparse.py
Lib/argparse.py
+4
-4
No files found.
Lib/argparse.py
View file @
1a2c1fbf
...
...
@@ -740,10 +740,10 @@ class Action(_AttributeHolder):
- default -- The value to be produced if the option is not specified.
- type --
The type which the command-line arguments should be converte
d
to, should be one of 'string', 'int', 'float', 'complex' or a
callable object that accepts a single string argument.
If None,
'string' is assum
ed.
- type --
A callable that accepts a single string argument, an
d
returns the converted value. The standard Python types str, int,
float, and complex are useful examples of such callables.
If None,
str is us
ed.
- choices -- A container of values that should be allowed. If not None,
after a command-line argument has been converted to the appropriate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment