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
0b85cd06
Commit
0b85cd06
authored
Oct 28, 2011
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads.
parents
d3cf0db3
74e6495a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Doc/library/argparse.rst
Doc/library/argparse.rst
+1
-1
Doc/library/stdtypes.rst
Doc/library/stdtypes.rst
+3
-5
No files found.
Doc/library/argparse.rst
View file @
0b85cd06
...
...
@@ -703,7 +703,7 @@ how the command-line arguments should be handled. The supported actions are:
>>> parser.add_argument('--str', dest='types', action='append_const', const=str)
>>> parser.add_argument('--int', dest='types', action='append_const', const=int)
>>> parser.parse_args('--str --int'.split())
Namespace(types=[<
type 'str'>, <type
'int'>])
Namespace(types=[<
class 'str'>, <class
'int'>])
* ``'version'`` - This expects a ``version=`` keyword argument in the
:meth:`~ArgumentParser.add_argument` call, and prints version information
...
...
Doc/library/stdtypes.rst
View file @
0b85cd06
...
...
@@ -2785,8 +2785,6 @@ types, where they are relevant. Some of these are not reported by the
The name of the class or type.
The following attributes are only supported by :term:`new-style class`\ es.
.. attribute:: class.__mro__
This attribute is a tuple of classes that are considered when looking for
...
...
@@ -2802,12 +2800,12 @@ The following attributes are only supported by :term:`new-style class`\ es.
.. method:: class.__subclasses__
Each
new-style class keeps a list of weak references to its immediate
subclasses. This
method returns a list of all those references still alive.
Each
class keeps a list of weak references to its immediate subclasses. This
method returns a list of all those references still alive.
Example::
>>> int.__subclasses__()
[<
type
'bool'>]
[<
class
'bool'>]
.. rubric:: Footnotes
...
...
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