Home
last modified time | relevance | path

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

1234

/third_party/python/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.py71 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 0), [1,2,3])
72 self.assertRaises(TypeError, a.__setitem__, slice(0, 10), 1)
73 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 2), [1,2])
99 self.assertRaises(IndexError, a.__setitem__, -3, 200)
100 self.assertRaises(IndexError, a.__setitem__, 2, 200)
103 self.assertRaises(IndexError, a.__setitem__, 0, 200)
104 self.assertRaises(IndexError, a.__setitem__, -1, 200)
105 self.assertRaises(TypeError, a.__setitem__)
191 self.assertRaises(TypeError, a.__setitem__, slice(0, 1, 5))
193 self.assertRaises(TypeError, a.__setitem__)
Dtest_buffer.py1398 self.assertRaises(TypeError, nd.__setitem__, 1, 8)
1401 self.assertRaises(TypeError, mv.__setitem__, 1, 8)
1413 self.assertRaises(OverflowError, nd.__setitem__, 1<<64, 8)
1417 self.assertRaises(IndexError, mv.__setitem__, 1<<64, 8)
1422 self.assertRaises(struct.error, nd.__setitem__, 2, 300)
1423 self.assertRaises(ValueError, nd.__setitem__, 1, (100, 200))
1426 self.assertRaises(ValueError, mv.__setitem__, 2, 300)
1427 self.assertRaises(TypeError, mv.__setitem__, 1, (100, 200))
1431 self.assertRaises(ValueError, nd.__setitem__, 2, 300)
1432 self.assertRaises(struct.error, nd.__setitem__, 1, (b'\x001', 200))
[all …]
Dtest_shelve.py25 def __setitem__(self, key, value): member in byteskeydict
128 self.assertRaises(UnicodeEncodeError, s.__setitem__, key, [1])
Dtest_array.py706 self.assertRaises(TypeError, a.__setitem__)
707 self.assertRaises(TypeError, a.__setitem__, None)
708 self.assertRaises(TypeError, a.__setitem__, 0, None)
711 a.__setitem__,
716 a.__setitem__,
898 self.assertRaises(TypeError, a.__setitem__, slice(0, 0), None)
899 self.assertRaises(TypeError, a.__setitem__, slice(0, 1), None)
902 self.assertRaises(TypeError, a.__setitem__, slice(0, 0), b)
903 self.assertRaises(TypeError, a.__setitem__, slice(0, 1), b)
1165 self.assertRaises(TypeError, a.__setitem__, 0, self.example[:2])
[all …]
/third_party/python/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)
/third_party/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)
/third_party/python/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)
/third_party/python/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
Dweakref.py165 def __setitem__(self, key, value): member in WeakValueDictionary
428 def __setitem__(self, key, value): member in WeakKeyDictionary
Dmailbox.py60 def __setitem__(self, key, message): member in Mailbox
346 def __setitem__(self, key, message): member in Maildir
619 def __setitem__(self, key, message): member in _singlefileMailbox
998 def __setitem__(self, key, message): member in MH
1264 def __setitem__(self, key, message): member in Babyl
1266 _singlefileMailbox.__setitem__(self, key, message)
/third_party/protobuf/python/google/protobuf/internal/
Dcontainers.py305 def __setitem__(self, key, value): member in RepeatedScalarFieldContainer
509 def __setitem__(self, key, value): member in ScalarMap
614 def __setitem__(self, key, value): member in MessageMap
Dextension_dict.py148 def __setitem__(self, extension_handle, value): member in _ExtensionDict
Dwell_known_types.py768 def __setitem__(self, key, value): member in Struct
829 def __setitem__(self, index, value): member in ListValue
/third_party/python/Lib/wsgiref/
Dheaders.py52 def __setitem__(self, name, val): member in Headers
/third_party/node/deps/v8/tools/testrunner/local/
Dutils.py203 def __setitem__(self, *args, **kwargs): member in FrozenDict
/third_party/node/tools/inspector_protocol/jinja2/
Dutils.py414 def __setitem__(self, key, value): member in LRUCache
631 def __setitem__(self, name, value): member in Namespace
/third_party/skia/third_party/externals/jinja2/
Dutils.py442 def __setitem__(self, key, value): member in LRUCache
713 def __setitem__(self, name, value): member in Namespace
/third_party/node/deps/v8/third_party/jinja2/
Dutils.py442 def __setitem__(self, key, value): member in LRUCache
713 def __setitem__(self, name, value): member in Namespace
/third_party/python/Lib/collections/
D__init__.py106 def __setitem__(self, key, value, member in OrderedDict
107 dict_setitem=dict.__setitem__, proxy=_proxy, Link=_Link):
1033 def __setitem__(self, key, value): member in ChainMap
1104 def __setitem__(self, key, item): member in UserDict
1221 def __setitem__(self, i, item): member in UserList
/third_party/jinja2/
Dutils.py519 def __setitem__(self, key: t.Any, value: t.Any) -> None: member in LRUCache
751 def __setitem__(self, name: str, value: t.Any) -> None: member in Namespace
/third_party/python/Lib/multiprocessing/
Dsharedctypes.py225 def __setitem__(self, i, value): member in SynchronizedArray
/third_party/python/Lib/tkinter/
Dfont.py115 def __setitem__(self, key, value): member in Font
/third_party/python/Lib/dbm/
Ddumb.py186 def __setitem__(self, key, val): member in _Database

1234