Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ difference
Method
difference
Lib/_weakrefset.py:78–81 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
76
return
self
77
78
def
difference(self, other):
79
newset = self.copy()
80
newset.difference_update(other)
81
return
newset
82
__sub__ = difference
83
84
def
difference_update(self, other):
Callers
11
__init__
Method · 0.45
assertSetEqual
Method · 0.45
test_difference
Method · 0.45
test_sub
Method · 0.45
test_startup_imports
Method · 0.45
test_difference
Method · 0.45
test_sub
Method · 0.45
test_do_not_rehash_dict_keys
Method · 0.45
test_issue_37219
Method · 0.45
test_difference
Method · 0.45
builtin_set.py
File · 0.45
Calls
2
copy
Method · 0.95
difference_update
Method · 0.45
Tested by
8
test_difference
Method · 0.36
test_sub
Method · 0.36
test_startup_imports
Method · 0.36
test_difference
Method · 0.36
test_sub
Method · 0.36
test_do_not_rehash_dict_keys
Method · 0.36
test_issue_37219
Method · 0.36
test_difference
Method · 0.36