We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ae2ba commit 20f3392Copy full SHA for 20f3392
rpyc/core/protocol.py
@@ -336,9 +336,7 @@ def _unbox(self, package): # boxing
336
return self._local_objects[value]
337
if label == consts.LABEL_REMOTE_REF:
338
id_pack = (str(value[0]), value[1], value[2]) # so value is a id_pack
339
- nonexistent = object()
340
- proxy = self._proxy_cache.get(id_pack, nonexistent)
341
- if proxy is not nonexistent:
+ if id_pack in self._proxy_cache:
342
proxy = self._proxy_cache[id_pack]
343
proxy.____refcount__ += 1 # if cached then remote incremented refcount, so sync refcount
344
else:
0 commit comments