Ticket #227 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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:

Description (last modified by scoder) (diff)


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():

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

Changed 6 years ago by scoder

  • owner changed from somebody to scoder
  • status changed from new to assigned
  • description modified (diff)

Changed 6 years ago by scoder

  • priority changed from minor to major
  • status changed from assigned to closed
  • resolution set to fixed
  • milestone changed from wishlist to 0.11
Note: See TracTickets for help on using tickets.