PyBool_CheckExact not defined in c code for python 2.5.4.
|Reported by:||hoytak||Owned by:||scoder|
Description (last modified by scoder)
I'm using the latest pull from cython-dev, 1800:e8b5a8e5da3d, with
python 2.5.4, and some of my code calls PyBool_CheckExact(). However, this doesn't seem to be defined anywhere. When I compile it with gcc, it warns that the symbol is defined implicitly, and trying to load it results in an import error saying it's an undefined symbol.
The simplest code I could find that uses PyBool_CheckExact() is:
cdef foo(bool a): assert a == True def test(): foo(True)
It seems that there's some issue in using the bool type; if the bool above is replaced by bint, the code works fine.
Change History (2)
comment:1 Changed 6 years ago by scoder
- Description modified (diff)
- Owner changed from somebody to scoder
- Status changed from new to assigned