STINNER Victor <[email protected]> added the comment:
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.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue47164>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com