This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author adelfino
Recipients adelfino, docs@python
Date 2018-07-10.16:33:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531240423.32.0.56676864532.issue34085@psf.upfronthosting.co.za>
In-reply-to
Content
1. The classmethod definition reads:

"""
The @classmethod form is a function decorator – see the description of function definitions in Function definitions for details.

It can be called either on the class (such as C.f()) or on an instance (such as C().f())
"""

The second paragraph seems like talking about the classmethod function instead of a class method. The same goes for staticmethod.

2. The staticmethod definition reads:

"""
It can be called either on the class (such as C.f()) or on an instance (such as C().f()). The instance is ignored except for its class.
"""

"The instance is ignored except for its class." seems to have been copied from classmethod definition.

3. There is redundant text:

"see the description of function definitions in Function definitions"

"consult the documentation on the standard type hierarchy in The standard type hierarchy"

PR fixes this.
History
Date User Action Args
2018-07-10 16:33:43adelfinosetrecipients: + adelfino, docs@python
2018-07-10 16:33:43adelfinosetmessageid: <1531240423.32.0.56676864532.issue34085@psf.upfronthosting.co.za>
2018-07-10 16:33:43adelfinolinkissue34085 messages
2018-07-10 16:33:43adelfinocreate