Weakref behaviour differs from that of cpython
The following passes under cpython3.8, but fails under pypy3.7 and pypy3.8:
from weakref import ref
class Test:
pass
test = Test()
r = ref(test)
test = None
assert r() is None, f"{r()} is not None"
In particular, this is the root cause of this concurrent futures error: #3317 (closed)
If you add a gc.collect()
before the assertion, all is well. So I'm guessing it's something to do with the difference between the garbage collection strategies?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information