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 jdemeyer
Recipients Mark.Shannon, jdemeyer, petr.viktorin
Date 2019-05-15.11:58:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557921506.83.0.125634021475.issue36924@roundup.psfhosted.org>
In-reply-to
Content
The class classmethod_descriptor implements classmethods for builtin functions. Unlike the plain classmethod class (which is used for Python classmethods), instances of classmethod_descriptor are callable. However, calling them is unlikely to happen in practice: the only way to obtain such an object is to extract from the class __dict__.

Therefore, the implementation of __call__ does not need to be optimized: we can just call __get__ and then call the result. Doing that allows a simpler implementation of PEP 590.
History
Date User Action Args
2019-05-15 11:58:26jdemeyersetrecipients: + jdemeyer, petr.viktorin, Mark.Shannon
2019-05-15 11:58:26jdemeyersetmessageid: <1557921506.83.0.125634021475.issue36924@roundup.psfhosted.org>
2019-05-15 11:58:26jdemeyerlinkissue36924 messages
2019-05-15 11:58:26jdemeyercreate