Loading...
Searching...
No Matches
Go to the documentation of this file.
12#if PY_VERSION_HEX >= 0x03000000
14#define INT_CHECK PyLong_Check
15#define TO_LONG PyLong_AsLong
16#define FROM_LONG PyLong_FromLong
17#define STR_CHECK PyUnicode_Check
18#define TO_CSTRING _PyUnicode_AsString
19#define FROM_CSTRING PyUnicode_FromString
20#define CODE_OBJECT(x) x
23#define INT_CHECK PyInt_Check
24#define TO_LONG PyInt_AsLong
25#define STR_CHECK PyString_Check
26#define TO_CSTRING PyString_AsString
27#define FROM_CSTRING PyString_FromString
28#define CODE_OBJECT(x) (PyCodeObject *)x
29#define FROM_LONG PyInt_FromLong