Home
last modified time | relevance | path

Searched refs:__setitem__ (Results 1 – 25 of 229) sorted by relevance

12345678910

/external/python/cpython3/Lib/test/
Dtest_dict_version.py67 self.check_version_changed(d, d.__setitem__, 'x', 'x')
68 self.check_version_changed(d, d.__setitem__, 'y', 'y')
71 self.check_version_changed(d, d.__setitem__, 'x', 1)
72 self.check_version_changed(d, d.__setitem__, 'y', 2)
79 self.check_version_changed(d, d.__setitem__, 'key', value)
83 self.check_version_dont_change(d, d.__setitem__, 'key', value)
104 self.check_version_changed(d, d.__setitem__, 'key', value1)
109 self.check_version_changed(d, d.__setitem__, 'key', value2)
Dlist_tests.py85 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 0), [1,2,3])
86 self.assertRaises(TypeError, a.__setitem__, slice(0, 10), 1)
87 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 2), [1,2])
113 self.assertRaises(IndexError, a.__setitem__, -3, 200)
114 self.assertRaises(IndexError, a.__setitem__, 2, 200)
117 self.assertRaises(IndexError, a.__setitem__, 0, 200)
118 self.assertRaises(IndexError, a.__setitem__, -1, 200)
119 self.assertRaises(TypeError, a.__setitem__)
205 self.assertRaises(TypeError, a.__setitem__, slice(0, 1, 5))
207 self.assertRaises(TypeError, a.__setitem__)
Dtest_buffer.py1397 self.assertRaises(TypeError, nd.__setitem__, 1, 8)
1400 self.assertRaises(TypeError, mv.__setitem__, 1, 8)
1412 self.assertRaises(OverflowError, nd.__setitem__, 1<<64, 8)
1416 self.assertRaises(IndexError, mv.__setitem__, 1<<64, 8)
1421 self.assertRaises(struct.error, nd.__setitem__, 2, 300)
1422 self.assertRaises(ValueError, nd.__setitem__, 1, (100, 200))
1425 self.assertRaises(ValueError, mv.__setitem__, 2, 300)
1426 self.assertRaises(TypeError, mv.__setitem__, 1, (100, 200))
1430 self.assertRaises(ValueError, nd.__setitem__, 2, 300)
1431 self.assertRaises(struct.error, nd.__setitem__, 1, (b'\x001', 200))
[all …]
/external/markdown/markdown/
Dodict.py30 def __setitem__(self, key, value): member in OrderedDict
31 super(OrderedDict, self).__setitem__(key, value)
79 self.__setitem__(k, v)
98 super(OrderedDict, self).__setitem__(key, value)
147 self.__setitem__(key, value)
/external/python/cpython2/Lib/ctypes/test/
Dtest_varsize_struct.py42 self.assertRaises(IndexError, array.__setitem__, 0, None)
44 self.assertRaises(IndexError, array.__setitem__, 1, None)
46 self.assertRaises(IndexError, array.__setitem__, -1, None)
/external/python/cpython3/Lib/ctypes/test/
Dtest_varsize_struct.py42 self.assertRaises(IndexError, array.__setitem__, 0, None)
44 self.assertRaises(IndexError, array.__setitem__, 1, None)
46 self.assertRaises(IndexError, array.__setitem__, -1, None)
/external/skqp/tools/skpbench/
Dskiaperf.py51 dict.__setitem__(self, key, JSONDict())
54 def __setitem__(self, key, val): member in JSONDict
59 dict.__setitem__(self, key, val)
/external/skia/tools/skpbench/
Dskiaperf.py51 dict.__setitem__(self, key, JSONDict())
54 def __setitem__(self, key, val): member in JSONDict
59 dict.__setitem__(self, key, val)
/external/python/cpython2/Lib/
DCookie.py437 dict.__setitem__(self, K, "")
440 def __setitem__(self, K, V): member in Morsel
444 dict.__setitem__(self, K, V)
590 dict.__setitem__(self, key, M)
593 def __setitem__(self, key, value): member in BaseCookie
597 dict.__setitem__(self, key, value)
D_strptime.py220 base.__setitem__('W', base.__getitem__('U').replace('U', 'W'))
221 base.__setitem__('c', self.pattern(self.locale_time.LC_date_time))
222 base.__setitem__('x', self.pattern(self.locale_time.LC_date))
223 base.__setitem__('X', self.pattern(self.locale_time.LC_time))
Dshelve.py80 __getitem__ = __setitem__ = __delitem__ = keys = closed
127 def __setitem__(self, key, value): member in Shelf
/external/python/cpython3/Lib/http/
Dcookies.py295 dict.__setitem__(self, key, "")
309 def __setitem__(self, K, V): member in Morsel
313 dict.__setitem__(self, K, V)
489 dict.__setitem__(self, key, M)
491 def __setitem__(self, key, value): member in BaseCookie
495 dict.__setitem__(self, key, value)
/external/python/cpython2/Lib/test/
Dlist_tests.py70 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 0), [1,2,3])
71 self.assertRaises(TypeError, a.__setitem__, slice(0, 10), 1)
72 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 2), [1,2])
98 self.assertRaises(IndexError, a.__setitem__, -3, 200)
99 self.assertRaises(IndexError, a.__setitem__, 2, 200)
102 self.assertRaises(IndexError, a.__setitem__, 0, 200)
103 self.assertRaises(IndexError, a.__setitem__, -1, 200)
104 self.assertRaises(TypeError, a.__setitem__)
187 self.assertRaises(TypeError, a.__setitem__, slice(0, 1, 5))
190 self.assertRaises(TypeError, a.__setitem__)
Dtest_userstring.py52 self.assertRaises(IndexError, s.__setitem__, -4, "bar")
53 self.assertRaises(IndexError, s.__setitem__, 3, "bar")
Dtest_array.py440 self.assertRaises(TypeError, a.__setitem__)
441 self.assertRaises(TypeError, a.__setitem__, None)
442 self.assertRaises(TypeError, a.__setitem__, 0, None)
445 a.__setitem__,
450 a.__setitem__,
633 self.assertRaises(TypeError, a.__setitem__, slice(0, 0), None)
634 self.assertRaises(TypeError, a.__setitem__, slice(0, 1), None)
638 self.assertRaises(TypeError, a.__setitem__, slice(0, 0), b)
639 self.assertRaises(TypeError, a.__setitem__, slice(0, 1), b)
820 self.assertRaises(TypeError, a.__setitem__, 0, self.example[:2])
[all …]
/external/bcc/src/python/bcc/
Dtable.py214 def __setitem__(self, key, leaf): member in TableBase
439 def __setitem__(self, key, leaf): member in ArrayBase
441 super(ArrayBase, self).__setitem__(key, leaf)
485 def __setitem__(self, key, leaf): member in ProgArray
490 super(ProgArray, self).__setitem__(key, leaf)
516 def __setitem__(self, key, leaf): member in CgroupArray
518 super(CgroupArray, self).__setitem__(key, self.Leaf(leaf))
522 super(CgroupArray, self).__setitem__(key, self.Leaf(f.fd))
652 def __setitem__(self, key, leaf): member in PerCpuHash
653 super(PerCpuHash, self).__setitem__(key, leaf)
[all …]
/external/tensorflow/tensorflow/python/platform/
Dflags.py100 def __setitem__(self, name, flag): member in _FlagValuesWrapper
101 return self.__dict__['__wrapped'].__setitem__(name, flag)
/external/llvm-project/debuginfo-tests/dexter/dex/debugger/visualstudio/windows/
DComInterface.py75 def __setitem__(self, key, val): member in ComObject
76 self._call(self.raw.__setitem__, key, val)
/external/python/asn1crypto/asn1crypto/
D_ordereddict.py50 def __setitem__(self, key, value): member in OrderedDict
55 dict.__setitem__(self, key, value)
Dkeys.py578 def __setitem__(self, key, value): member in ECPrivateKey
579 res = super(ECPrivateKey, self).__setitem__(key, value)
791 def __setitem__(self, key, value): member in PrivateKeyInfo
792 res = super(PrivateKeyInfo, self).__setitem__(key, value)
/external/python/cpython3/Lib/
D_strptime.py214 base.__setitem__('W', base.__getitem__('U').replace('U', 'W'))
215 base.__setitem__('c', self.pattern(self.locale_time.LC_date_time))
216 base.__setitem__('x', self.pattern(self.locale_time.LC_date))
217 base.__setitem__('X', self.pattern(self.locale_time.LC_time))
Dshelve.py71 __iter__ = __len__ = __getitem__ = __setitem__ = __delitem__ = keys = closed
119 def __setitem__(self, key, value): member in Shelf
/external/autotest/client/common_lib/
Dmetrics_mock_class.py85 def __setitem__(self, key, value): member in mock_class_base
/external/python/funcsigs/funcsigs/
Dodict.py46 def __setitem__(self, key, value, dict_setitem=dict.__setitem__): member in OrderedDict
/external/fonttools/Lib/fontTools/misc/
DdictTools.py38 def __setitem__(self, key, value): member in hashdict

12345678910