]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixes #13270: obsolete reference to old-style/new-style classes.
authorFlorent Xicluna <florent.xicluna@gmail.com>
Fri, 28 Oct 2011 09:21:19 +0000 (11:21 +0200)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Fri, 28 Oct 2011 09:21:19 +0000 (11:21 +0200)
Doc/library/argparse.rst
Doc/library/stdtypes.rst

index 88270edf89c746ff8d8d368a575939f2b6e4ad71..9c7ef52c5b6a2154c9bc6d5634205f77b1a8fdbe 100644 (file)
@@ -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
index 3692b5655d4531935fba2d36f150607c8945299d..942ecbad56d5d90f64ee99fb64f88c9ded615986 100644 (file)
@@ -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