1import sys
2if sys.version_info[0] < 3:
3    __doc__ = u"""
4
5    >>> test(0)
6    0L
7    >>> test(1)
8    1L
9
10    >>> sys.maxint + 1 > sys.maxint
11    True
12    >>> type(sys.maxint * 2 + 1) is long
13    True
14
15    >>> test(sys.maxint + 1) == sys.maxint + 1
16    True
17    >>> test(sys.maxint * 2 + 1) == sys.maxint * 2 + 1
18    True
19
20    >>> test(256 ** unsigned_long_size() - 1) > 0
21    True
22    >>> test(256 ** unsigned_long_size() - 1) > sys.maxint
23    True
24    """
25else:
26    __doc__ = u"""
27    >>> test(0)
28    0
29    >>> test(1)
30    1
31    >>> test(256 ** unsigned_long_size() - 1) > 0
32    True
33    """
34
35def test(k):
36    cdef unsigned long m
37    m = k
38    return m
39
40def unsigned_long_size():
41    return sizeof(unsigned long)
42