Home
last modified time | relevance | path

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

12

/third_party/python/Objects/
Dbytes_methods.c477 ival = PyNumber_AsSsize_t(tmp_subobj, NULL); in parse_args_finds_byte()
698 Py_ssize_t ival = PyNumber_AsSsize_t(arg, NULL); in _Py_bytes_contains()
Dabstract.c167 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_GetItem()
218 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_SetItem()
252 key_value = PyNumber_AsSsize_t(key, PyExc_IndexError); in PyObject_DelItem()
1092 count = PyNumber_AsSsize_t(n, PyExc_OverflowError); in sequence_repeat()
1478 PyNumber_AsSsize_t(PyObject *item, PyObject *err) in PyNumber_AsSsize_t() function
Dbytesobject.c1598 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in bytes_subscript()
2626 size = PyNumber_AsSsize_t(x, PyExc_OverflowError); in bytes_new_impl()
2695 value = PyNumber_AsSsize_t(item, NULL); in _PyBytes_FromList()
2737 value = PyNumber_AsSsize_t(item, NULL); in _PyBytes_FromTuple()
2788 value = PyNumber_AsSsize_t(item, NULL); in _PyBytes_FromIterator()
Dbytearrayobject.c389 Py_ssize_t i = PyNumber_AsSsize_t(index, PyExc_IndexError); in bytearray_subscript()
608 Py_ssize_t i = PyNumber_AsSsize_t(index, PyExc_IndexError); in bytearray_ass_subscript()
809 count = PyNumber_AsSsize_t(arg, PyExc_OverflowError); in bytearray___init___impl()
Dmemoryobject.c2322 index = PyNumber_AsSsize_t(PyTuple_GET_ITEM(tup, dim), in ptr_from_tuple()
2489 index = PyNumber_AsSsize_t(key, PyExc_IndexError); in memory_subscript()
2565 index = PyNumber_AsSsize_t(key, PyExc_IndexError); in memory_ass_sub()
Dtupleobject.c819 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in tuplesubscript()
Drangeobject.c631 istep = PyNumber_AsSsize_t(r->step, NULL); in range_repr()
Dexceptions.c898 self->written = PyNumber_AsSsize_t(filename, PyExc_ValueError); in oserror_init()
1225 n = PyNumber_AsSsize_t(arg, PyExc_ValueError); in OSError_written_set()
Dlistobject.c2822 i = PyNumber_AsSsize_t(item, PyExc_IndexError); in list_subscript()
2876 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in list_ass_subscript()
/third_party/python/Modules/_sqlite/
Drow.c131 _idx = PyNumber_AsSsize_t(idx, PyExc_IndexError); in pysqlite_row_subscript()
/third_party/python/Modules/
Dmmapmodule.c899 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in mmap_subscript()
985 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in mmap_ass_subscript()
1007 v = PyNumber_AsSsize_t(value, PyExc_TypeError); in mmap_ass_subscript()
Ditertoolsmodule.c1626 stop = PyNumber_AsSsize_t(a1, PyExc_OverflowError); in islice_new()
1638 start = PyNumber_AsSsize_t(a1, PyExc_OverflowError); in islice_new()
1642 stop = PyNumber_AsSsize_t(a2, PyExc_OverflowError); in islice_new()
1662 step = PyNumber_AsSsize_t(a3, PyExc_OverflowError); in islice_new()
Darraymodule.c2347 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in array_subscr()
2413 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in array_ass_subscr()
/third_party/python/Include/
Dabstract.h532 PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
/third_party/python/Python/
Dmodsupport.c25 limit = PyNumber_AsSsize_t(obj, PyExc_OverflowError); in _Py_convert_optional_to_ssize_t()
/third_party/python/Modules/_io/
Diobase.c939 n = PyNumber_AsSsize_t(res, PyExc_ValueError); in _io__RawIOBase_read_impl()
Dbufferedio.c1486 n = PyNumber_AsSsize_t(res, PyExc_ValueError); in _bufferedreader_raw_read()
1847 n = PyNumber_AsSsize_t(res, PyExc_ValueError); in _bufferedwriter_raw_write()
/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc242 index = PyNumber_AsSsize_t(item, PyExc_IndexError); in Subscript()
Ddescriptor_containers.cc208 Py_ssize_t number = PyNumber_AsSsize_t(key, NULL); in _GetItemByKey()
619 index = PyNumber_AsSsize_t(item, PyExc_IndexError); in SeqSubscript()
/third_party/python/Modules/_ctypes/
D_ctypes.c4603 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in Array_subscript()
4745 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in Array_ass_subscript()
5259 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError); in Pointer_subscript()
5280 step = PyNumber_AsSsize_t(slice->step, in Pointer_subscript()
5300 start = PyNumber_AsSsize_t(slice->start, in Pointer_subscript()
5310 stop = PyNumber_AsSsize_t(slice->stop, in Pointer_subscript()
Dcallproc.c1717 offset = PyNumber_AsSsize_t(pyoffset, NULL); in byref()
/third_party/python/Doc/c-api/
Dnumber.rst273 .. c:function:: Py_ssize_t PyNumber_AsSsize_t(PyObject *o, PyObject *exc)
/third_party/python/Doc/data/
Dstable_abi.dat410 function,PyNumber_AsSsize_t,3.2,
Drefcounts.dat1426 PyNumber_AsSsize_t:Py_ssize_t:::
1427 PyNumber_AsSsize_t:PyObject*:o:0:
1428 PyNumber_AsSsize_t:PyObject*:exc:0:
/third_party/python/PC/
Dpython3dll.c386 EXPORT_FUNC(PyNumber_AsSsize_t)

12