This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python/C API Reference Manual, 7.2.1.1 Boolean Objects
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, nichloas
Priority: normal Keywords:

Created on 2005-09-20 11:56 by nichloas, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26334 - (view) Author: Li Daobing (nichloas) Date: 2005-09-20 11:56
1. PyBool_Check is double documented.

[1] http://www.python.org/doc/2.3.5/api/boolObjects.html

2. PyBool_FromLong's return type should be PyObject*,
this bug also in python2.4[2], the funtcion declaration
in header file[3][4] is 

PyAPI_FUNC(PyObject *) PyBool_FromLong(long);

[1] http://www.python.org/doc/2.3.5/api/boolObjects.html
[2] http://www.python.org/doc/2.4.1/api/boolObjects.html
[3] /usr/include/python2.3/boolobject.h
[4] /usr/include/python2.4/boolobject.h

Thanks
msg26335 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-09-20 12:54
Logged In: YES 
user_id=1188172

Both are already fixed in 2.4 CVS.
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42388
2005-09-20 11:56:02nichloascreate