[issue26824] Make some macros use Py_TYPE
STINNER Victor
report at bugs.python.org
Fri Apr 22 03:16:13 EDT 2016
STINNER Victor added the comment:
change_some_macros_using_Py_TYPE.patch LGTM.
> Direct access to ob_type is used about 300 times in the source code. Changing all this case to use the Py_TYPE() macro causes code churn.
IHMO change_some_macros_using_Py_TYPE.patch makes the code more readable since it's harder and easier to read.
Note: Such refactoring patch must only be applied to the development branch (default).
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26824>
_______________________________________
More information about the Python-bugs-list
mailing list