diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -722,7 +722,7 @@ >>> 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=[, ]) + Namespace(types=[, ]) * ``'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 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2808,8 +2808,6 @@ 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 @@ -2825,12 +2823,12 @@ .. 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__() - [] + [] .. rubric:: Footnotes