Home
last modified time | relevance | path

Searched refs:getitem (Results 1 – 25 of 48) 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/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.__operators__.pbtxt12 name: "getitem"
/external/python/jinja/src/jinja2/
Dsandbox.py300 def getitem(self, obj, argument): member in SandboxedEnvironment
406 obj = self._env.getitem(obj, i)
Dfilters.py68 item = environment.getitem(item, part)
104 item_i = environment.getitem(item_i, part)
/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)
/external/python/cpython3/Lib/
Doperator.py169 def getitem(a, b): function
445 __getitem__ = getitem
Dtyping.py314 def __init__(self, getitem): argument
315 self._getitem = getitem
316 self._name = getitem.__name__
317 self.__doc__ = getitem.__doc__
779 return operator.getitem, (origin, args)
849 return operator.getitem, (Callable, args)
1234 return operator.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()
/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/Modules/
Darraymodule.c32 PyObject * (*getitem)(struct arrayobject *, Py_ssize_t); member
55 PyObject* (*getitem)(struct arrayobject *, Py_ssize_t); member
625 return (*ap->ob_descr->getitem)(ap, i); in getarrayitem()
2858 it->getitem = ao->ob_descr->getitem; in array_iter()
2876 return (*it->getitem)(ao, it->index++); in arrayiter_next()
/external/python/mock/mock/tests/
Dtestmagicmethods.py111 def getitem(s, name): function
119 mock.__getitem__ = getitem
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py84 def getitem(s, name): function
92 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.py176 self.assertRaises(TypeError, operator.getitem)
177 self.assertRaises(TypeError, operator.getitem, a, None)
178 self.assertEqual(operator.getitem(a, 2), 2)
Dtest_dbm_dumb.py208 partial(operator.getitem, f),
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_utils.py633 def getitem(a, slice_spec): function
Dnp_array_ops.py307 np_utils.less_equal(k, -1 * np_utils.getitem(v_shape, 0)),
308 np_utils.greater_equal(k, np_utils.getitem(v_shape, 1)),
341 np_utils.less_equal(offset, -1 * np_utils.getitem(a_shape, -2)),
342 np_utils.greater_equal(offset, np_utils.getitem(a_shape, -1)),

12