summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-10-28 09:32:53 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-10-28 09:32:53 (GMT)
commit0b85cd06808cf9b865f91b3cf00796ab3f87914a (patch)
tree492a3a9e6f6353498c72f9905b0b47dc49408e80 /Doc
parentd3cf0db3ee89863ecd856297075b0d75581052e6 (diff)
parent74e6495a20d8879d7610386d8bdb6a4139fd0776 (diff)
downloadcpython-0b85cd06808cf9b865f91b3cf00796ab3f87914a.zip
cpython-0b85cd06808cf9b865f91b3cf00796ab3f87914a.tar.gz
cpython-0b85cd06808cf9b865f91b3cf00796ab3f87914a.tar.bz2
Merge heads.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/argparse.rst2
-rw-r--r--Doc/library/stdtypes.rst8
2 files changed, 4 insertions, 6 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 88270ed..9c7ef52 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -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
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 3692b56..942ecba 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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