8
>>> str(test((1<<32)-1))
12
... except (OverflowError, TypeError): print("ERROR")
15
>>> test(1<<128) #doctest: +ELLIPSIS
16
Traceback (most recent call last):
28
... except (OverflowError, TypeError): print("ERROR")
30
>>> a.foo(1 << 180) #doctest: +ELLIPSIS
31
Traceback (most recent call last):
36
# XXX This should generate a warning !!!
38
ctypedef unsigned long size_t
45
cdef readonly size_t b
47
def __init__(self, size_t a, object b):
51
cpdef size_t foo(self, size_t x):