Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/ctypes/test/
Dtest_slicing.py77 self.assertRaises(ValueError, operator.getitem,
79 self.assertRaises(ValueError, operator.getitem,
81 self.assertRaises(ValueError, operator.getitem,
83 self.assertRaises(ValueError, operator.getitem,
/external/python/cpython2/Lib/ctypes/test/
Dtest_slicing.py81 self.assertRaises(ValueError, operator.getitem,
83 self.assertRaises(ValueError, operator.getitem,
85 self.assertRaises(ValueError, operator.getitem,
87 self.assertRaises(ValueError, operator.getitem,
/external/python/cffi/demo/
Dpyobj.py66 def getitem(p_list, index): function
/external/libchrome/third_party/jinja2/
Dsandbox.py359 def getitem(self, obj, argument): member in SandboxedEnvironment
462 obj = self._env.getitem(obj, i)
Dnodes.py711 return self.environment.getitem(self.node.as_const(eval_ctx),
/external/python/cpython3/Lib/
Doperator.py169 def getitem(a, b): function
445 __getitem__ = getitem
/external/python/cpython2/Modules/
Dposixmodule.c3163 PyObject *(*getitem)(PyObject *, Py_ssize_t); in posix_execv() local
3174 getitem = PyList_GetItem; in posix_execv()
3178 getitem = PyTuple_GetItem; in posix_execv()
3197 if (!PyArg_Parse((*getitem)(argv, i), "et", in posix_execv()
3237 PyObject *(*getitem)(PyObject *, Py_ssize_t); in posix_execve() local
3250 getitem = PyList_GetItem; in posix_execve()
3254 getitem = PyTuple_GetItem; in posix_execve()
3273 if (!PyArg_Parse((*getitem)(argv, i), in posix_execve()
3388 PyObject *(*getitem)(PyObject *, Py_ssize_t); in posix_spawnv() local
3399 getitem = PyList_GetItem; in posix_spawnv()
[all …]
Dcstubs103 PyObject * (*getitem)(PyObject *, int);
110 getitem = PyList_GetItem;
114 getitem = PyTuple_GetItem;
126 w = (*getitem)(v, 0);
150 w = (*getitem)(v, i);
206 PyObject * (*getitem)(PyObject *, int);
213 getitem = PyList_GetItem;
217 getitem = PyTuple_GetItem;
225 w = (*getitem)(v, i);
Darraymodule.c27 PyObject * (*getitem)(struct arrayobject *, Py_ssize_t); member
459 return (*ap->ob_descr->getitem)(ap, i); in getarrayitem()
2193 PyObject * (*getitem)(struct arrayobject *, Py_ssize_t); member
2217 it->getitem = ao->ob_descr->getitem; in array_iter()
2227 return (*it->getitem)(it->ao, it->index++); in arrayiter_next()
Dglmodule.c97 PyObject * (*getitem)(PyObject *, int); in gl_varray() local
104 getitem = PyList_GetItem; in gl_varray()
108 getitem = PyTuple_GetItem; in gl_varray()
120 w = (*getitem)(v, 0); in gl_varray()
144 w = (*getitem)(v, i); in gl_varray()
192 PyObject * (*getitem)(PyObject *, int); in gen_nvarray() local
199 getitem = PyList_GetItem; in gen_nvarray()
203 getitem = PyTuple_GetItem; in gen_nvarray()
211 w = (*getitem)(v, i); in gen_nvarray()
/external/python/cpython2/Doc/library/
Doperator.rst248 .. function:: getitem(a, b)
260 This function is removed in Python 3.x. Use :func:`getitem` with a slice
650 | Indexing | ``obj[k]`` | ``getitem(obj, k)`` |
672 | Slicing | ``seq[i:j]`` | ``getitem(seq, slice(i, j))`` |
/external/python/cpython2/Lib/test/
Dtest_bigmem.py582 self.assertRaises(IndexError, operator.getitem, s, len(s))
583 self.assertRaises(IndexError, operator.getitem, s, len(s) + 1)
584 self.assertRaises(IndexError, operator.getitem, s, len(s) + 1<<31)
690 self.assertRaises(IndexError, operator.getitem, t, size)
836 self.assertRaises(IndexError, operator.getitem, l, size)
Dtest_operator.py167 self.assertRaises(TypeError, operator.getitem)
168 self.assertRaises(TypeError, operator.getitem, a, None)
169 self.assertTrue(operator.getitem(a, 2) == 2)
/external/protobuf/python/
Dmox.py475 getitem = self._class_to_mock.__dict__.get('__getitem__', None)
478 if getitem is None:
/external/python/cpython3/Doc/library/
Doperator.rst224 .. function:: getitem(a, b)
400 | Indexing | ``obj[k]`` | ``getitem(obj, k)`` |
422 | Slicing | ``seq[i:j]`` | ``getitem(seq, slice(i, j))`` |
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py85 def getitem(s, name): function
93 mock.__getitem__ = getitem
/external/python/mock/mock/tests/
Dtestmagicmethods.py111 def getitem(s, name): function
119 mock.__getitem__ = getitem
/external/python/cpython3/Lib/test/
Dtest_bigmem.py528 self.assertRaises(IndexError, operator.getitem, s, len(s))
529 self.assertRaises(IndexError, operator.getitem, s, len(s) + 1)
530 self.assertRaises(IndexError, operator.getitem, s, len(s) + 1<<31)
878 self.assertRaises(IndexError, operator.getitem, t, size)
1022 self.assertRaises(IndexError, operator.getitem, l, size)
Dtest_operator.py171 self.assertRaises(TypeError, operator.getitem)
172 self.assertRaises(TypeError, operator.getitem, a, None)
173 self.assertEqual(operator.getitem(a, 2), 2)
Dtest_dbm_dumb.py208 partial(operator.getitem, f),
/external/python/cpython3/Modules/
Darraymodule.c32 PyObject * (*getitem)(struct arrayobject *, Py_ssize_t); member
55 PyObject* (*getitem)(struct arrayobject *, Py_ssize_t); member
620 return (*ap->ob_descr->getitem)(ap, i); in getarrayitem()
2903 it->getitem = ao->ob_descr->getitem; in array_iter()
2921 return (*it->getitem)(ao, it->index++); in arrayiter_next()
/external/tensorflow/tensorflow/python/lib/core/
Dbfloat16.cc558 NPyBfloat16_ArrFuncs.getitem = NPyBfloat16_GetItem; in Initialize()
/external/python/cpython2/Lib/plat-mac/
Dgensuitemodule.py341 def getlist(f, description, getitem): argument
345 list.append(generic(getitem, f))
/external/scapy/scapy/modules/
Dsix.py639 indexbytes = operator.getitem
/external/python/six/
Dsix.py635 indexbytes = operator.getitem

12