mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
13 lines
84 B
Python
13 lines
84 B
Python
from _weakref import ref
|
|
|
|
|
|
class X:
|
|
pass
|
|
|
|
|
|
a = X()
|
|
b = ref(a)
|
|
|
|
assert b() is a
|
|
|