Tim Peters
2003-03-18 18:59:51 UTC
[Lexy Zhitenev]
Py_INCREF(Py_True);
return Py_True;
to return True (in Python 2.3; before 2.3, Py_True resolves to the int 1).
I need to write a function in C that returns bool (True or False value).
What function in Python C API stands for this?
Py_True and Py_False are global constants, like Py_None. So, e.g.,What function in Python C API stands for this?
Py_INCREF(Py_True);
return Py_True;
to return True (in Python 2.3; before 2.3, Py_True resolves to the int 1).