3 cdef extern from "Python.h":
4 ctypedef struct PyTypeObject:
7 ctypedef struct PyObject:
11 cdef extern from "longintrepr.h":
12 cdef struct _longobject:
15 # int ob_size # not in Py3k
16 unsigned int *ob_digit
18 def test(temp = long(0)):
20 l = <_longobject *> temp
21 #print sizeof(l.ob_size) # not in Py3k
22 print sizeof(l.ob_digit[0])