l.append(len(o.dict)) AttributeError: 'weakref' object has no attribute 'dict' Ran 1 test in 0.063s FAILED (errors=1) Owner sha256commentedAug 20, 2016 Fixed in4eba56f sha256closed this ascompletedAug 20, 2016
AttributeError: 'NoneType' object has no attribute '_free_weak_ref' Exception ignored in: <function StorageWeakRef.delat 0x7f6bb5f141f0> Traceback (most recent call last): File "/home/mm/p38/lib/python3.8/site-packages/torch/multiprocessing/reductions.py", line 36, indel ...
self._last_player_settlement = weakref.ref(WorldObject.get_object_by_id(data[0][0]))ifdataelseNonedata = db("SELECT value FROM last_active_settlement WHERE type = \"ANY\"") self._last_settlement = weakref.ref(WorldObject.get_object_by_id(data[0][0]))ifdataelseNonedata = db("SELE...
self.assertFalse(hasattr(proxy,'foo'),"proxydoes not reflect attribute removal")proxy.foo =1self.assertEqual(o.foo,1,"object does not reflect attribute addition viaproxy")proxy.foo =2self.assertEqual(o.foo,2,"object does not reflect attribute modification viaproxy")delproxy.foo self.assertFa...
will be discarded when there is no longer a strong reference to the key. This can be used to associate additional data with an object owned by other parts of an application without adding attributes to those objects. This can be especially useful with objects that override attribute accesses. ...
I've defined a basic Keras model and used the custom pyfunc flavor to create a model class and save this model to local file. I've tried several configurations but all lead to a "TypeError: cannot pickle 'weakref' object". Code to reproduce issue ...
ref, receiver_object = _boundmethod_safe_weakref(receiver)ifPY3: receiver = ref(receiver) weakref.finalize(receiver_object, self._remove_receiver)else: receiver = ref(receiver, self._remove_receiver)withself.lock: self._clear_dead_receivers()forr_key, _inself.receivers:ifr_key == lookup_ke...
# Exception exceptions.AttributeError: # "II instance has no attribute 'J'" in <bound method II.acallback # of <?.II instance at 0x00B9B4B8>> ignored class J(object): pass class II: def acallback(self, ignore): self.J I = II() I.J = J I.wr = weakref.ref(J, I.acall...
self.__attributeDataCache = {} self.__effectDataCache = {} self.__modifierDataCache = {} self.__fingerprint =None# Initialize weakref object cacheself.__typeObjCache =WeakValueDictionary() self.__attributeObjCache =WeakValueDictionary() ...