[issue39968] port extension modules' macros of `get_module_state()` to inline function.

Raymond Hettinger report at bugs.python.org
Sun Mar 15 23:08:17 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Tim, do you approve of this kind of wholesale macro-to-inline function conversion?

My thought is that in most cases, there is no advantage to conversion and that sometimes there will be minor disadvantage in code generation when the macro is used across files.  I like inline functions as well as next person, but that doesn't mean all macros have to be rewritten.  Mostly, this seems like unnecessary code churn.

----------
nosy: +rhettinger, tim.peters

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39968>
_______________________________________


More information about the Python-bugs-list mailing list