By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,941 Members | 1,753 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,941 IT Pros & Developers. It's quick & easy.

PyBool_FromLong

P: n/a
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)

Sep 2 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Sep 2 '05 #2

P: n/a
Michael Hoffman wrote:
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?


Not necessary. I just fixed it.

Reinhold
Sep 3 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.