Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ 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
15
parse_platforms
Method · 0.80
find_device
Function · 0.80
__init__
Method · 0.80
assertSetEqual
Method · 0.80
test_difference
Method · 0.80
test_sub
Method · 0.80
_test_set_operator_methods
Method · 0.80
test_startup_imports
Method · 0.80
test_difference
Method · 0.80
test_sub
Method · 0.80
test_do_not_rehash_dict_keys
Method · 0.80
test_issue_37219
Method · 0.80
Calls
2
copy
Method · 0.95
difference_update
Method · 0.80
Tested by
9
test_difference
Method · 0.64
test_sub
Method · 0.64
_test_set_operator_methods
Method · 0.64
test_startup_imports
Method · 0.64
test_difference
Method · 0.64
test_sub
Method · 0.64
test_do_not_rehash_dict_keys
Method · 0.64
test_issue_37219
Method · 0.64
test_difference
Method · 0.64