Home
last modified time | relevance | path

Searched refs:PyNumber_AsSsize_t (Results 1 – 25 of 63) sorted by relevance

123

/external/python/cpython2/Modules/_io/
Dbytesio.c240 size = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in bytesio_read()
309 size = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in bytesio_readline()
355 maxsize = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in bytesio_readlines()
447 size = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in bytesio_truncate()
513 pos = PyNumber_AsSsize_t(posobj, PyExc_OverflowError); in bytesio_seek()
711 pos = PyNumber_AsSsize_t(position_obj, PyExc_OverflowError); in bytesio_setstate()
Dstringio.c226 size = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in stringio_read()
300 limit = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in stringio_readline()
368 size = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in stringio_truncate()
417 pos = PyNumber_AsSsize_t(posobj, PyExc_OverflowError); in stringio_seek()
763 pos = PyNumber_AsSsize_t(position_obj, PyExc_OverflowError); in stringio_setstate()
D_iomodule.c603 limit = PyNumber_AsSsize_t(obj, PyExc_OverflowError); in _PyIO_ConvertSsize_t()
Diobase.c826 n = PyNumber_AsSsize_t(res, PyExc_ValueError); in rawiobase_read()
/external/python/cpython3/Objects/
Dbytes_methods.c491 ival = PyNumber_AsSsize_t(tmp_subobj, NULL); in parse_args_finds_byte()
712 Py_ssize_t ival = PyNumber_AsSsize_t(arg, NULL); in _Py_bytes_contains()
Dabstract.c163 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_GetItem()
206 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_SetItem()
238 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_DelItem()
974 count = PyNumber_AsSsize_t(n, PyExc_OverflowError); in sequence_repeat()
1297 PyNumber_AsSsize_t(PyObject *item, PyObject *err) in PyNumber_AsSsize_t() function
Dbytesobject.c1663 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in bytes_subscript()
2604 size = PyNumber_AsSsize_t(x, PyExc_OverflowError); in bytes_new()
2668 value = PyNumber_AsSsize_t(item, NULL); in _PyBytes_FromList()
2710 value = PyNumber_AsSsize_t(item, NULL); in _PyBytes_FromTuple()
2761 value = PyNumber_AsSsize_t(item, NULL); in _PyBytes_FromIterator()
Dbytearrayobject.c408 Py_ssize_t i = PyNumber_AsSsize_t(index, PyExc_IndexError); in bytearray_subscript()
626 Py_ssize_t i = PyNumber_AsSsize_t(index, PyExc_IndexError); in bytearray_ass_subscript()
821 count = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in bytearray_init()
/external/python/cpython3/Modules/_sqlite/
Drow.c92 _idx = PyNumber_AsSsize_t(idx, PyExc_IndexError); in pysqlite_row_subscript()
/external/python/cpython2/Modules/_sqlite/
Drow.c100 _idx = PyNumber_AsSsize_t(idx, PyExc_IndexError); in pysqlite_row_subscript()
/external/python/cpython2/Objects/
Dbufferobject.c510 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in buffer_subscript()
707 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in buffer_ass_subscript()
Dmemoryobject.c579 result = PyNumber_AsSsize_t(key, NULL); in memory_subscript()
650 start = PyNumber_AsSsize_t(key, NULL); in memory_ass_sub()
Dsliceobject.c300 ilen = PyNumber_AsSsize_t(len, PyExc_OverflowError); in slice_indices()
Dabstract.c149 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_GetItem()
178 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_SetItem()
210 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_DelItem()
1202 count = PyNumber_AsSsize_t(n, PyExc_OverflowError);
1521 PyNumber_AsSsize_t(PyObject *item, PyObject *err) function
Dbytearrayobject.c442 Py_ssize_t i = PyNumber_AsSsize_t(index, PyExc_IndexError); in bytearray_subscript()
614 Py_ssize_t i = PyNumber_AsSsize_t(index, PyExc_IndexError); in bytearray_ass_subscript()
853 count = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in bytearray_init()
1311 Py_ssize_t ival = PyNumber_AsSsize_t(arg, PyExc_ValueError); in bytearray_contains()
Dbytesobject.c1670 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in bytes_subscript()
2609 size = PyNumber_AsSsize_t(x, PyExc_OverflowError); in bytes_new()
2669 value = PyNumber_AsSsize_t(item, NULL); \
2732 value = PyNumber_AsSsize_t(item, NULL); in _PyBytes_FromIterator()
Dstructseq.c98 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in structseq_subscript()
/external/python/cpython3/Modules/
Dmmapmodule.c766 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in mmap_subscript()
851 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in mmap_ass_subscript()
873 v = PyNumber_AsSsize_t(value, PyExc_TypeError); in mmap_ass_subscript()
/external/python/cpython2/Modules/_ctypes/
Dctypes.h17 #define PyNumber_AsSsize_t(ob, exc) PyInt_AsLong(ob) macro
/external/python/cpython2/Include/
Dabstract.h860 PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
/external/python/cpython2/Modules/
Dmmapmodule.c772 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in mmap_subscript()
893 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in mmap_ass_subscript()
/external/python/cpython3/Python/
Dmodsupport.c24 limit = PyNumber_AsSsize_t(obj, PyExc_OverflowError); in _Py_convert_optional_to_ssize_t()
/external/python/cpython3/Modules/_io/
Diobase.c921 n = PyNumber_AsSsize_t(res, PyExc_ValueError); in _io__RawIOBase_read_impl()
/external/python/cpython3/Include/
Dabstract.h727 PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c4361 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in Array_subscript()
4504 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in Array_ass_subscript()
5007 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in Pointer_subscript()
5027 step = PyNumber_AsSsize_t(slice->step, in Pointer_subscript()
5047 start = PyNumber_AsSsize_t(slice->start, in Pointer_subscript()
5057 stop = PyNumber_AsSsize_t(slice->stop, in Pointer_subscript()

123