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 Mark.Shannon
Recipients Mark.Shannon, kj
Date 2022-01-26.10:01:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643191278.03.0.471360623467.issue46533@roundup.psfhosted.org>
In-reply-to
Content
Calls of the form `x.m(args)` where either `x = X` or x = X()` and X is a class, and `m` is a classmethod or staticmethod are not currently specialized.

Typically the `x.m()` will translate to:

LOAD_FAST x
LOAD_METHOD "m"
PRECALL_METHOD 0
CALL 0

Since classmethods and staticmethods are descriptors, only the LOAD_METHOD should need specializing. The PRECALL/CALL will be able to handle the resulting values without modification.
History
Date User Action Args
2022-01-26 10:01:18Mark.Shannonsetrecipients: + Mark.Shannon, kj
2022-01-26 10:01:18Mark.Shannonsetmessageid: <1643191278.03.0.471360623467.issue46533@roundup.psfhosted.org>
2022-01-26 10:01:18Mark.Shannonlinkissue46533 messages
2022-01-26 10:01:17Mark.Shannoncreate