Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/ctypes/test/
Dtest_arrays.py67 from operator import getslice, delitem
71 self.assertRaises(TypeError, delitem, ca, 0)
Dtest_pointers.py93 from operator import delitem
104 self.assertRaises(TypeError, delitem, p, 0)
/external/python/cpython3/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)
/external/python/cpython3/Lib/
Doperator.py165 def delitem(a, b): function
444 __delitem__ = delitem
/external/python/cpython2/Doc/library/
Doperator.rst232 .. function:: delitem(a, b)
244 This function is removed in Python 3.x. Use :func:`delitem` with a slice
648 | Indexed Deletion | ``del obj[k]`` | ``delitem(obj, k)`` |
670 | Slice Deletion | ``del seq[i:j]`` | ``delitem(seq, slice(i, j))`` |
/external/python/cpython2/Lib/test/
Dtest_operator.py136 self.assertRaises(TypeError, operator.delitem, a)
137 self.assertRaises(TypeError, operator.delitem, a, None)
138 self.assertTrue(operator.delitem(a, 1) is None)
Dtest_bytes.py848 def delitem(): function
850 self.assertRaises(BufferError, delitem)
Dtest_descr.py1760 self.delitem = key
1780 self.assertEqual(a.delitem, 12)
/external/python/cpython3/Doc/library/
Doperator.rst218 .. function:: delitem(a, b)
398 | Indexed Deletion | ``del obj[k]`` | ``delitem(obj, k)`` |
420 | Slice Deletion | ``del seq[i:j]`` | ``delitem(seq, slice(i, j))`` |
/external/python/mock/mock/tests/
Dtestmagicmethods.py115 def delitem(s, name): function
120 mock.__delitem__ = delitem
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py88 def delitem(s, name): function
93 mock.__delitem__ = delitem
/external/python/cpython3/Lib/test/
Dtest_operator.py156 self.assertRaises(TypeError, operator.delitem, a)
157 self.assertRaises(TypeError, operator.delitem, a, None)
158 self.assertIsNone(operator.delitem(a, 1))
Dtest_dbm_dumb.py206 for meth in (partial(operator.delitem, f),
Dtest_array.py999 self.assertRaises(BufferError, operator.delitem, a, 0)
1001 self.assertRaises(BufferError, operator.delitem, a, slice(0, 1))
Dtest_bytes.py1605 def delitem(): function
1607 self.assertRaises(BufferError, delitem)
Dtest_descr.py1921 self.delitem = key
1934 self.assertEqual(a.delitem, 12)
1940 self.assertEqual(a.delitem, (slice(0, 10)))
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_parser.py112 self.addCleanup(operator.delitem, sys.modules, modname)
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_parser.py113 self.addCleanup(operator.delitem, sys.modules, modname)
/external/python/cpython2/Lib/plat-mac/
DFrameWork.py581 def delitem(self, item): member in Menu
670 self.menu.delitem(self.item)
/external/python/cpython2/Modules/
Doperator.c430 spam2(delitem,__delitem__,
/external/python/cpython2/Misc/
DHISTORY14522 - The operator module has new functions delitem and delslice, and the
/external/python/cpython3/Misc/
DHISTORY31901 - The operator module has new functions delitem and delslice, and the