From: John Arbash Meinel <john@arbash-meinel.com> It seems pyrex 0.9.8.5 has a bug with how it handles "hash()". I have this code: cdef long the_hash the_hash = hash(my_object)