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 Mark.Shannon, kj, vstinner
Date 2022-03-31.07:27:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648711638.71.0.539706448342.issue47164@roundup.psfhosted.org>
In-reply-to
Content
After reading Mark's comments, I reworked my GH-32190 PR to only use the CAST macros in other macros, not in the C code. The CAST macros are not used in such code pattern:

     else if (PyCFunction_Check(func))
-        return ((PyCFunctionObject*)func)->m_ml->ml_name;
+        return _PyCFunctionObject_CAST(func)->m_ml->ml_name;

In fact, this change doesn't bring any value.
History
Date User Action Args
2022-03-31 07:27:18vstinnersetrecipients: + vstinner, Mark.Shannon, kj
2022-03-31 07:27:18vstinnersetmessageid: <1648711638.71.0.539706448342.issue47164@roundup.psfhosted.org>
2022-03-31 07:27:18vstinnerlinkissue47164 messages
2022-03-31 07:27:18vstinnercreate