Home
last modified time | relevance | path

Searched refs:PY_SSIZE_T_MIN (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_structmembers.py12 PY_SSIZE_T_MAX, PY_SSIZE_T_MIN
73 ts.T_PYSSIZET = PY_SSIZE_T_MIN
74 self.assertEqual(ts.T_PYSSIZET, PY_SSIZE_T_MIN)
Dtest_getargs2.py44 INT_MIN, LONG_MIN, LONG_MAX, PY_SSIZE_T_MIN, PY_SSIZE_T_MAX, \
381 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MIN-1)
382 self.assertEqual(PY_SSIZE_T_MIN, getargs_n(PY_SSIZE_T_MIN))
Dtest_bytes.py1098 (b'%zd', c_ssize_t, _testcapi.PY_SSIZE_T_MIN, str),
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.h70 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
73 # define PY_SSIZE_T_MIN INT_MIN macro
Dconnection.h100 Py_ssize_t length, offset=0, size=PY_SSIZE_T_MIN; in connection_sendbytes()
118 if (size == PY_SSIZE_T_MIN) { in connection_sendbytes()
/external/libchrome/third_party/markupsafe/
D_speedups.c17 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
20 #define PY_SSIZE_T_MIN INT_MIN macro
/external/python/cpython2/Objects/
Dsliceobject.c140 assert(PY_SSIZE_T_MIN + 1 <= -PY_SSIZE_T_MAX); in _PySlice_Unpack()
169 *stop = *step < 0 ? PY_SSIZE_T_MIN : PY_SSIZE_T_MAX; in _PySlice_Unpack()
Dlongobject.c221 #define PY_ABS_SSIZE_T_MIN (0-(size_t)PY_SSIZE_T_MIN)
395 return PY_SSIZE_T_MIN; in PyLong_AsSsize_t()
Dabstract.c1548 result = PY_SSIZE_T_MIN;
/external/python/cpython3/Doc/c-api/
Dslice.rst94 ``PY_SSIZE_T_MIN`` to ``PY_SSIZE_T_MIN``, and silently boost the step
Dnumber.rst278 exception is cleared and the value is clipped to ``PY_SSIZE_T_MIN`` for a negative
/external/python/cpython2/Modules/_io/
D_iomodule.h118 # define PY_OFF_T_MIN PY_SSIZE_T_MIN
/external/python/cpython3/Modules/_io/
D_iomodule.h111 # define PY_OFF_T_MIN PY_SSIZE_T_MIN
/external/python/cpython3/Objects/
Dsliceobject.c203 Py_BUILD_ASSERT(PY_SSIZE_T_MIN + 1 <= -PY_SSIZE_T_MAX); in PySlice_Unpack()
232 *stop = *step < 0 ? PY_SSIZE_T_MIN : PY_SSIZE_T_MAX; in PySlice_Unpack()
Dlongobject.c481 #define PY_ABS_SSIZE_T_MIN (0-(size_t)PY_SSIZE_T_MIN)
649 return PY_SSIZE_T_MIN; in PyLong_AsSsize_t()
Dabstract.c1393 result = PY_SSIZE_T_MIN; in PyNumber_AsSsize_t()
/external/python/cpython2/Lib/test/
Dtest_getargs2.py47 INT_MIN, LONG_MIN, LONG_MAX, PY_SSIZE_T_MIN, PY_SSIZE_T_MAX, \
272 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MIN-1)
273 self.assertEqual(PY_SSIZE_T_MIN, getargs_n(PY_SSIZE_T_MIN))
/external/python/cpython3/Include/
Dpyport.h132 #define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1) macro
/external/python/cpython2/Include/
Dpyport.h204 #define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1) macro
/external/python/cpython2/Doc/c-api/
Dnumber.rst311 exception is cleared and the value is clipped to *PY_SSIZE_T_MIN* for a negative
/external/python/cpython2/Modules/
D_json.c6 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
9 #define PY_SSIZE_T_MIN INT_MIN macro
D_testcapimodule.c2984 PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyInt_FromSsize_t(PY_SSIZE_T_MIN)); in init_testcapi()
/external/marisa-trie/bindings/python/
Dmarisa-swig_wrap.cxx895 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
898 # define PY_SSIZE_T_MIN INT_MIN macro
/external/python/cpython3/Modules/
D_testcapimodule.c6867 PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyLong_FromSsize_t(PY_SSIZE_T_MIN)); in PyInit__testcapi()