Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ remove
Method
remove
Lib/test/test_weakref.py:607–608 ·
view source on GitHub ↗
(k)
Source
from the content-addressed store, hash-verified
605
pass
606
data = {}
607
def
remove(k):
608
del data[k]
609
def
encapsulate():
610
f =
lambda
: ()
611
data[weakref.ref(f, remove)] = None
Callers
15
test_legacy_finalizer
Method · 0.45
test_legacy_finalizer_newclass
Method · 0.45
tearDown
Method · 0.45
make_script
Method · 0.45
test_directory
Method · 0.45
test_handles_closed_on_exception
Method · 0.45
test_args_string
Method · 0.45
test_call_string
Method · 0.45
tearDown
Method · 0.45
test_subclass_with_custom_hash
Method · 0.45
test_remove
Method · 0.45
test_poll1
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected