Ticket #227 (closed defect: fixed)
PyBool_CheckExact not defined in c code for python 2.5.4.
| Reported by: | hoytak | Owned by: | scoder |
|---|---|---|---|
| Priority: | major | Milestone: | 0.11 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description (last modified by scoder) (diff)
Hello,
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.
--Hoyt
Change History
Note: See
TracTickets for help on using
tickets.
