Home
last modified time | relevance | path

Searched refs:delitem (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Lib/ctypes/test/
Dtest_pointers.py96 from operator import delitem
107 self.assertRaises(TypeError, delitem, p, 0)
Dtest_arrays.py69 from operator import delitem
70 self.assertRaises(TypeError, delitem, ca, 0)
/third_party/python/Lib/
Doperator.py165 def delitem(a, b): function
444 __delitem__ = delitem
/third_party/python/Doc/library/
Doperator.rst222 .. function:: delitem(a, b)
399 | Indexed Deletion | ``del obj[k]`` | ``delitem(obj, k)`` |
421 | Slice Deletion | ``del seq[i:j]`` | ``delitem(seq, slice(i, j))`` |
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py88 def delitem(s, name): function
93 mock.__delitem__ = delitem
/third_party/python/Lib/test/
Dtest_operator.py165 self.assertRaises(TypeError, operator.delitem, a)
166 self.assertRaises(TypeError, operator.delitem, a, None)
167 self.assertIsNone(operator.delitem(a, 1))
Dtest_dbm_dumb.py208 for meth in (partial(operator.delitem, f),
Dtest_array.py1090 self.assertRaises(BufferError, operator.delitem, a, 0)
1092 self.assertRaises(BufferError, operator.delitem, a, slice(0, 1))
Dtest_bytes.py1629 def delitem(): function
1631 self.assertRaises(BufferError, delitem)
Dtest_descr.py1945 self.delitem = key
1958 self.assertEqual(a.delitem, 12)
1964 self.assertEqual(a.delitem, (slice(0, 10)))
/third_party/python/Lib/lib2to3/tests/
Dtest_parser.py117 self.addCleanup(operator.delitem, sys.modules, modname)
/third_party/python/Misc/
DHISTORY31901 - The operator module has new functions delitem and delslice, and the