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 colesbury
Recipients colesbury
Date 2021-07-16.19:43:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626464638.16.0.397539197321.issue44657@roundup.psfhosted.org>
In-reply-to
Content
The instancemethod_call function should use the PyInstanceMethod_GET_FUNCTION macro instead of the PyMethod_GET_FUNCTION macro. The current code is incorrect, but still works okay (doesn't crash)  because PyInstanceMethodObject.func is at the same offset as PyMethodObject.im_func.

https://github.com/python/cpython/blob/c90c591e5158ab7b531dcd6e2a5f00bc70ba7637/Objects/classobject.c#L465
History
Date User Action Args
2021-07-16 19:43:58colesburysetrecipients: + colesbury
2021-07-16 19:43:58colesburysetmessageid: <1626464638.16.0.397539197321.issue44657@roundup.psfhosted.org>
2021-07-16 19:43:58colesburylinkissue44657 messages
2021-07-16 19:43:58colesburycreate