Home
last modified time | relevance | path

Searched refs:setitem (Results 1 – 10 of 10) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_memoryview.py70 def setitem(value): function
72 self.assertRaises(TypeError, setitem, b"a")
73 self.assertRaises(TypeError, setitem, 65)
74 self.assertRaises(TypeError, setitem, memoryview(b"a"))
101 def setitem(key, value): function
104 self.assertRaises(IndexError, setitem, 6, b"a")
105 self.assertRaises(IndexError, setitem, -7, b"a")
106 self.assertRaises(IndexError, setitem, sys.maxsize, b"a")
107 self.assertRaises(IndexError, setitem, -sys.maxsize, b"a")
109 self.assertRaises(TypeError, setitem, 0.0, b"a")
[all …]
Dtest_operator.py317 self.assertRaises(TypeError, operator.setitem, a)
318 self.assertRaises(TypeError, operator.setitem, a, None, None)
319 self.assertTrue(operator.setitem(a, 0, 2) is None)
321 self.assertRaises(IndexError, operator.setitem, a, 4, 2)
Dtest_bigmem.py842 self.assertRaises(IndexError, operator.setitem, l, size, 6)
Dtest_descr.py1615 self.setitem = (key, value)
1635 self.assertEqual(a.setitem, (12, 21))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Darraymodule.c28 int (*setitem)(struct arrayobject *, Py_ssize_t, PyObject *); member
471 if ((*self->ob_descr->setitem)(self, -1, v) < 0) in ins1()
489 return (*self->ob_descr->setitem)(self, where, v); in ins1()
781 return (*a->ob_descr->setitem)(a, i, v); in array_ass_item()
1326 if ((*self->ob_descr->setitem)(self, in array_fromlist()
1745 return (*self->ob_descr->setitem)(self, i, value); in array_ass_subscr()
DcPickle.c1795 static char setitem = SETITEM; in batch_dict() local
1820 if (self->write_func(self, &setitem, 1) < 0) in batch_dict()
1854 if (self->write_func(self, &setitem, 1) < 0) in batch_dict()
1926 static char setitem = SETITEM; in batch_dict_exact() local
1941 if (self->write_func(self, &setitem, 1) < 0) in batch_dict_exact()
Doperator.c428 spam2(setitem,__setitem__,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Darraymodule.c28 int (*setitem)(struct arrayobject *, Py_ssize_t, PyObject *); member
471 if ((*self->ob_descr->setitem)(self, -1, v) < 0) in ins1()
489 return (*self->ob_descr->setitem)(self, where, v); in ins1()
781 return (*a->ob_descr->setitem)(a, i, v); in array_ass_item()
1326 if ((*self->ob_descr->setitem)(self, in array_fromlist()
1730 return (*self->ob_descr->setitem)(self, i, value); in array_ass_subscr()
Doperator.c302 spam2(setitem,__setitem__,
DcPickle.c1764 static char setitem = SETITEM; in batch_dict() local
1789 if (self->write_func(self, &setitem, 1) < 0) in batch_dict()
1823 if (self->write_func(self, &setitem, 1) < 0) in batch_dict()
1895 static char setitem = SETITEM; in batch_dict_exact() local
1910 if (self->write_func(self, &setitem, 1) < 0) in batch_dict_exact()