补充
This commit is contained in:
16
CPython/Python/P312/PyLongObject.py
Normal file
16
CPython/Python/P312/PyLongObject.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import Object
|
||||
import t, c
|
||||
|
||||
|
||||
digit: t.CTypedef = t.CUInt32T
|
||||
sdigit: t.CTypedef = t.CInt32T # signed variant of digit
|
||||
twodigits: t.CTypedef = t.CUInt64T
|
||||
stwodigits: t.CTypedef = t.CInt64T # signed variant of twodigits
|
||||
|
||||
class _PyLongValue:
|
||||
lv_tag: t.CUIntPtrT # Number of digits, sign and flags
|
||||
ob_digit: list[digit, 1]
|
||||
|
||||
class PyLongObject:
|
||||
ob_base: Object.PyObject
|
||||
long_value: _PyLongValue
|
||||
Reference in New Issue
Block a user