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 steven.daprano
Recipients docs@python, ezio.melotti, gregory.p.smith, martin.panter, pfalcon, steven.daprano
Date 2017-05-08.00:59:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494205150.68.0.428907785087.issue23702@psf.upfronthosting.co.za>
In-reply-to
Content
Be careful with the documentation patch. Although unbound method as an object type is gone, unbound method as a concept is not.

Conceptually, something like ``MyClass.spam`` is an unbound method: it is a method of the MyClass type, but bound to no instance. In Python 2 that concept was implemented by MethodType. In Python 3, the concept is implemented by FunctionType.

While it is certainly true from one perspective that unbound methods are nothing but functions, it is nevertheless also sometimes useful to distinguish from "functions defined in a class" (methods) and "other functions". I think that nearly all Python programmers would be happy to call ``spam`` below:

    class MyClass:
        def spam(self, arg): ...

a method, even though it is also/really a function.
History
Date User Action Args
2017-05-08 00:59:10steven.dapranosetrecipients: + steven.daprano, pfalcon, gregory.p.smith, ezio.melotti, docs@python, martin.panter
2017-05-08 00:59:10steven.dapranosetmessageid: <1494205150.68.0.428907785087.issue23702@psf.upfronthosting.co.za>
2017-05-08 00:59:10steven.dapranolinkissue23702 messages
2017-05-08 00:59:10steven.dapranocreate