On Jan 7, 2009, at 7:40 AM, Dag Sverre Seljebotn wrote: > 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?
entry_as_pyobject should always be a PyObject*. In general, I like avoiding excessive casting, so if it is already a PyObject* we shouldn't re-cast it. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
