Home
last modified time | relevance | path

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

12

/third_party/python/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,
/third_party/node/tools/inspector_protocol/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),
Dfilters.py77 item = environment.getitem(item, part)
Denvironment.py408 def getitem(self, obj, argument): member in Environment
/third_party/skia/third_party/externals/jinja2/
Dsandbox.py381 def getitem(self, obj, argument): member in SandboxedEnvironment
497 obj = self._env.getitem(obj, i)
Dfilters.py74 item = environment.getitem(item, part)
110 item_i = environment.getitem(item_i, part)
Dnodes.py742 return self.environment.getitem(
Denvironment.py449 def getitem(self, obj, argument): member in Environment
/third_party/jinja2/
Dsandbox.py298 def getitem( member in SandboxedEnvironment
423 obj = self._env.getitem(obj, i)
Dfilters.py70 item = environment.getitem(item, part)
112 item_i = environment.getitem(item_i, part)
Dnodes.py846 return eval_ctx.environment.getitem(
Denvironment.py461 def getitem( member in Environment
/third_party/python/Lib/
Doperator.py169 def getitem(a, b): function
445 __getitem__ = getitem
Dtyping.py365 def __init__(self, getitem): argument
366 self._getitem = getitem
367 self._name = getitem.__name__
368 self.__doc__ = getitem.__doc__
1088 return operator.getitem, (origin, args)
1167 return operator.getitem, (Callable, args)
1618 return operator.getitem, (
/third_party/protobuf/python/
Dmox.py475 getitem = self._class_to_mock.__dict__.get('__getitem__', None)
478 if getitem is None:
/third_party/python/Doc/library/
Doperator.rst228 .. function:: getitem(a, b)
401 | Indexing | ``obj[k]`` | ``getitem(obj, k)`` |
423 | Slicing | ``seq[i:j]`` | ``getitem(seq, slice(i, j))`` |
Dunittest.mock-examples.rst982 >>> def getitem(name):
989 >>> mock.__getitem__.side_effect = getitem
998 >>> mock.__getitem__ = Mock(side_effect=getitem)
1006 >>> mock.__getitem__.side_effect = getitem
/third_party/python/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.py185 self.assertRaises(TypeError, operator.getitem)
186 self.assertRaises(TypeError, operator.getitem, a, None)
187 self.assertEqual(operator.getitem(a, 2), 2)
Dtest_dbm_dumb.py210 partial(operator.getitem, f),
Dtest_sys.py279 self.assertRaises(IndexError, operator.getitem, v, 5)
/third_party/python/Modules/
Darraymodule.c35 PyObject * (*getitem)(struct arrayobject *, Py_ssize_t); member
56 PyObject* (*getitem)(struct arrayobject *, Py_ssize_t); member
629 return (*ap->ob_descr->getitem)(ap, i); in getarrayitem()
2889 it->getitem = ao->ob_descr->getitem; in array_iter()
2912 return (*it->getitem)(ao, it->index++); in arrayiter_next()
Dposixmodule.c6405 PyObject *(*getitem)(PyObject *, Py_ssize_t); in os_spawnv_impl() local
6412 getitem = PyList_GetItem; in os_spawnv_impl()
6416 getitem = PyTuple_GetItem; in os_spawnv_impl()
6434 if (!fsconvert_strdup((*getitem)(argv, i), in os_spawnv_impl()
6509 PyObject *(*getitem)(PyObject *, Py_ssize_t); in os_spawnve_impl() local
6518 getitem = PyList_GetItem; in os_spawnve_impl()
6522 getitem = PyTuple_GetItem; in os_spawnve_impl()
6546 if (!fsconvert_strdup((*getitem)(argv, i), in os_spawnve_impl()
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py84 def getitem(s, name): function
92 mock.__getitem__ = getitem

12