[Cython] Question on Code.entry_as_pyobject

Dag Sverre Seljebotn dagss at student.matnat.uio.no
Wed Jan 7 16:40:55 CET 2009


I have a problem with Code.entry_as_pyobject -- it is used in 
Code.put_var_decref to cast the entry to PyObject in the DECREF, however 
if there's no base class for a class the cast doesn't happen (a base 
class is explicitly checked for and if it is there a cast doesn't 
happen). Does this make sense? Should I change put_var_decref to use 
another method to cast (so that non-PyObject types are always casted), 
or change entry_as_pyobject?

Dag Sverre


More information about the Cython-dev mailing list