Index: Include/boolobject.h =================================================================== --- Include/boolobject.h (revision 75079) +++ Include/boolobject.h (working copy) @@ -26,6 +26,7 @@ /* Macros for returning Py_True or Py_False, respectively */ #define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True #define Py_RETURN_FALSE return Py_INCREF(Py_False), Py_False +#define Py_RETURN_BOOL(x) if (x) Py_RETURN_TRUE; else Py_RETURN_FALSE /* Function to return a bool from a C long */ PyAPI_FUNC(PyObject *) PyBool_FromLong(long);