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 vstinner
Recipients methane, serhiy.storchaka, vstinner
Date 2017-02-09.00:19:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Maybe PyObject_Call(), _PyObject_FastCallDict(), etc. can also be modified to get the following fast-path:

+    if (Py_TYPE(func) == &PyMethod_Type) {
+        result = _PyMethod_FastCall(func, args, nargs);
+    }

But I don't know how common it is to get a PyMethod_Type object in these functions, nor the code of the additional if.
Date User Action Args
2017-02-09 00:19:54vstinnersetrecipients: + vstinner, methane, serhiy.storchaka
2017-02-09 00:19:54vstinnersetmessageid: <>
2017-02-09 00:19:54vstinnerlinkissue29507 messages
2017-02-09 00:19:54vstinnercreate