3 (1, 1L, -1L, 18446744073709551615L)
5 (1, 1L, 100000000000000000000000000000000L, -100000000000000000000000000000000L)
7 >>> py_huge_calculated_long()
8 1606938044258990275541962092341162602522202993782792835301376L
9 >>> py_huge_computation_small_result_neg()
10 (-2535301200456458802993406410752L, -2535301200456458802993406410752L)
14 from cython cimport typeof
18 if sys.version_info[0] >= 3:
19 __doc__ = __doc__.replace(u'L', u'')
23 if sys.version_info[0] >= 3:
24 __doc__ = __doc__.replace(u'L', u'')
28 cdef unsigned long ua = 1UL
29 cdef long long aa = 0xFFFFFFFFFFFFFFFFLL
30 cdef unsigned long long uaa = 0xFFFFFFFFFFFFFFFFULL
35 return 1, 1L, 100000000000000000000000000000000, -100000000000000000000000000000000
37 @cython.test_fail_if_path_exists("//NumBinopNode", "//IntBinopNode")
38 @cython.test_assert_path_exists("//ReturnStatNode/IntNode")
39 def py_huge_calculated_long():
42 @cython.test_fail_if_path_exists("//NumBinopNode", "//IntBinopNode")
43 @cython.test_assert_path_exists("//ReturnStatNode/IntNode")
44 def py_huge_computation_small_result():
46 >>> py_huge_computation_small_result()
49 return (1 << 200) >> 199
51 @cython.test_fail_if_path_exists("//NumBinopNode", "//IntBinopNode")
52 #@cython.test_assert_path_exists("//ReturnStatNode/IntNode")
53 def py_huge_computation_small_result_neg():
54 return -(2 ** 101), (-2) ** 101
58 >>> type(large_literal()) is int
61 if sys.version_info[0] >= 3 or sys.maxint > 0xFFFFFFFFFFFF:
83 # different ways to write an integer in Python
95 def c_oct_py2_legacy():
97 >>> c_oct_py2_legacy()
110 return 0o01, -0o21, 0o77
112 def py_oct_py2_legacy():
114 >>> py_oct_py2_legacy()
117 return 001, -021, 077
134 return 0x01, -0x21, 0xFF
151 return 0b01, -0b10, 0b1111