[issue17589] Make documentation about macros in C API explicit about rvalue vs statement

Amaury Forgeot d'Arc report at bugs.python.org
Mon Apr 8 18:59:08 CEST 2013


Amaury Forgeot d'Arc added the comment:

There are some extension modules (pytables) that do
  return Py_INREF(x), x;
and Py_RETURN_NONE is also defined with a comma expression.

Oh, and Cython:
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17589>
_______________________________________


More information about the Python-bugs-list mailing list