[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

Raymond Hettinger report at bugs.python.org
Wed Apr 7 13:59:31 EDT 2021


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

> Just chiming in to say that for PyPy this API would be extremely useful

Thanks for that input. Given that there would be some value add, I withdraw my objection.

> I proposed to declare it as a "static inline" function,
> but I'm fine with a macro as well.

Let's use a macro then because inlining in guaranteed and we don't have to be on the lookout for failures to inline.

----------

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


More information about the Python-bugs-list mailing list