Home
last modified time | relevance | path

Searched refs:WeakValueDictionary (Results 1 – 25 of 43) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_weakref.py1208 self.check_len_cycles(weakref.WeakValueDictionary, lambda k: (1, k))
1238 self.check_len_race(weakref.WeakValueDictionary, lambda k: (1, k))
1264 dict = weakref.WeakValueDictionary()
1517 dict = weakref.WeakValueDictionary({364:o})
1522 dict = weakref.WeakValueDictionary({364:o})
1523 dict2 = weakref.WeakValueDictionary(dict)
1528 self.assertRaises(TypeError, weakref.WeakValueDictionary.__init__)
1529 self.assertRaises(TypeError, weakref.WeakValueDictionary, {}, {})
1530 self.assertRaises(TypeError, weakref.WeakValueDictionary, (), ())
1534 d = weakref.WeakValueDictionary(**{kw: o})
[all …]
Dtest_copy.py829 self._check_copy_weakdict(weakref.WeakValueDictionary)
855 u = weakref.WeakValueDictionary()
/external/python/cpython2/Lib/test/
Dtest_weakref.py966 self.check_len_cycles(weakref.WeakValueDictionary, lambda n, k: (n, k))
996 self.check_len_race(weakref.WeakValueDictionary, lambda k: (1, k))
1023 dict = weakref.WeakValueDictionary()
1234 self.assertRaises(TypeError, weakref.WeakValueDictionary.__init__)
1235 self.assertRaises(TypeError, weakref.WeakValueDictionary, {}, {})
1236 self.assertRaises(TypeError, weakref.WeakValueDictionary, (), ())
1240 d = weakref.WeakValueDictionary(**{kw: o})
1245 dict = weakref.WeakValueDictionary()
1270 self.check_popitem(weakref.WeakValueDictionary,
1295 self.check_setdefault(weakref.WeakValueDictionary,
[all …]
Dtest_copy.py702 self._check_copy_weakdict(weakref.WeakValueDictionary)
728 u = weakref.WeakValueDictionary()
/external/python/cpython2/Doc/library/
Dweakref.rst38 :class:`WeakKeyDictionary` and :class:`WeakValueDictionary` classes supplied by
42 :class:`WeakValueDictionary`, then when the last remaining references to that
47 :class:`WeakKeyDictionary` and :class:`WeakValueDictionary` use weak references
178 .. class:: WeakValueDictionary([dict])
185 Caution: Because a :class:`WeakValueDictionary` is built on top of a Python
187 difficult to ensure for a :class:`WeakValueDictionary` because actions performed
191 :class:`WeakValueDictionary` objects have the following additional methods.
196 .. method:: WeakValueDictionary.itervaluerefs()
203 .. method:: WeakValueDictionary.valuerefs()
297 This is used in the implementation of the :class:`WeakValueDictionary` to reduce
[all …]
/external/python/dateutil/dateutil/tz/
D_factories.py25 cls.__instances = weakref.WeakValueDictionary()
52 cls.__instances = weakref.WeakValueDictionary()
Dtz.py1541 self.__instances = weakref.WeakValueDictionary()
1581 self.__instances = weakref.WeakValueDictionary()
/external/python/cpython3/Doc/library/
Dweakref.rst39 :class:`WeakKeyDictionary` and :class:`WeakValueDictionary` classes supplied by
43 :class:`WeakValueDictionary`, then when the last remaining references to that
48 :class:`WeakKeyDictionary` and :class:`WeakValueDictionary` use weak references
182 .. class:: WeakValueDictionary([dict])
190 :class:`WeakValueDictionary` objects have an additional method that has the
195 .. method:: WeakValueDictionary.valuerefs()
372 This is used in the implementation of the :class:`WeakValueDictionary` to reduce
417 _id2obj_dict = weakref.WeakValueDictionary()
/external/tensorflow/tensorflow/python/distribute/parallel_device/
Dparallel_device.py36 _all_parallel_devices = weakref.WeakValueDictionary()
/external/python/cpython2/Lib/
Dweakref.py36 class WeakValueDictionary(UserDict.UserDict): class
128 new = WeakValueDictionary()
Dsymtable.py18 self.__memo = weakref.WeakValueDictionary()
/external/python/cffi/cffi/
Dmodel.py573 _typecache_cffi_backend = weakref.WeakValueDictionary()
583 type(backend).__typecache = weakref.WeakValueDictionary()
/external/python/cpython3/Lib/
Dweakref.py93 class WeakValueDictionary(_collections_abc.MutableMapping): class
170 new = WeakValueDictionary()
Dsymtable.py18 self.__memo = weakref.WeakValueDictionary()
/external/python/cpython2/Lib/multiprocessing/
Dutil.py149 _afterfork_registry = weakref.WeakValueDictionary()
/external/python/cpython3/Lib/zoneinfo/
D_zoneinfo.py33 _weak_cache = weakref.WeakValueDictionary()
38 cls._weak_cache = weakref.WeakValueDictionary()
/external/python/cpython3/Misc/NEWS.d/
D3.6.1rc1.rst557 old keys should not remove new values from WeakValueDictionary when
595 Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
D3.5.3rc1.rst478 old keys should not remove new values from WeakValueDictionary when
506 Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
D3.8.0a2.rst312 WeakValueDictionary, due to some keys or values disappearing while
/external/python/cpython3/Lib/multiprocessing/
Dutil.py159 _afterfork_registry = weakref.WeakValueDictionary()
/external/tensorflow/tensorflow/python/ops/
Dscript_ops.py171 self._funcs = weakref.WeakValueDictionary()
/external/python/cpython3/Lib/test/test_asyncio/
Dutils.py353 self._transports = weakref.WeakValueDictionary()
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Dsave_impl.py355 self._functions = weakref.WeakValueDictionary()
/external/python/pyopenssl/src/OpenSSL/
DSSL.py6 from weakref import WeakValueDictionary
1462 _reverse_mapping = WeakValueDictionary()
/external/python/cpython2/Misc/NEWS.d/
D2.7.15rc1.rst1184 old keys should not remove new values from WeakValueDictionary when
1223 Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()

12