Define macros for Py_RETURN_TRUE and Py_RETURN_FALSE (for Python 2.3). Also make Py_RETURN_NONE macro a little safer. Current macro will not work as expected in situations like below since it expands to two C statements: if( !attr ) Py_RETURN_NONE;
Define macros for Py_RETURN_TRUE and Py_RETURN_FALSE (for Python 2.3). Also make Py_RETURN_NONE macro a little safer. Current macro will not work as expected in situations like below since it expands to two C statements: if( !attr ) Py_RETURN_NONE;