PyBool_FromLong
Michael Hoffman
cam.ac.uk at mh391.invalid
Fri Sep 2 10:17:17 EDT 2005
Andrew MacKeith wrote:
> In the C API Docs, the signature of PyBool from long seems to be incorrect.
>
> int PyBool_FromLong(long v)
> Returns Py_True or Py_False depending on the truth value of v. New
> in version 2.3.
>
> The description would suggest:
>
> PyObject* PyBool_FromLong(long v)
That's in the source too (dist/src/Objects/boolobject.c,
dist/src/Include/boolobject.h). Want to submit a documentation bug?
--
Michael Hoffman
More information about the Python-list
mailing list