Jørgen P. Tjernø wrote: > The following python is generating > > cdef class Track: > cdef Artist _create_artist(self, artist* artist, bool take_owner=False): > # Do stuff to create an Artist object. > > property artists: > def __get__(self): > if self._artists is None: > self._artists = [self._create_artist(some_c_api(self.ds, a.id), > True) for a in artists] > return self._artists > > This code, specifically the list comprehension, generates C code that > gives me: > warning: implicit declaration of function ‘PyBool_CheckExact’ > > Any ideas why? Should I care at all? > > This is Python 2.5.2, Cython 0.10.3. :-)
Use 'bint' instead of 'bool'. (I've also tripped on this at various times.) Jason _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
