> On Aug 2, 2008, at 7:53 PM, Case Vanhorsen wrote: > >>cdef extern from "longintrepr.h": >> cdef struct _longobject: >> ... >>def test(temp = long(0)): >> cdef _longobject *l >> l = <_longobject *> temp
This is not the way I would recommend going about this. It's better to use an external extension type. Then you'll get appropriate type testing instead of assuming that the object being passes is a long. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
