Opened 6 years ago

Closed 6 years ago

#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)

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

comment:1 Changed 6 years ago by scoder

  • Description modified (diff)
  • Owner changed from somebody to scoder
  • Status changed from new to assigned

comment:2 Changed 6 years ago by scoder

  • Milestone changed from wishlist to 0.11
  • Priority changed from minor to major
  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.