Add PY_SSIZE_T_MAX/PY_SSIZE_T_MIN into the conversion guide.
This commit is contained in:
parent
e27dca1aaa
commit
18a98c596c
|
@ -134,6 +134,8 @@ versions can be achieved with the test::
|
|||
|
||||
#if PY_VERSION_HEX < 0x02050000
|
||||
typedef int Py_ssize_t;
|
||||
#define PY_SSIZE_T_MAX INT_MAX
|
||||
#define PY_SSIZE_T_MIN INT_MIN
|
||||
#endif
|
||||
|
||||
and then using Py_ssize_t in the rest of the code. For
|
||||
|
|
Loading…
Reference in New Issue