Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ discard
Method
discard
Lib/test/test_collections.py:1412–1413 ·
view source on GitHub ↗
(self, item)
Source
from the content-addressed store, hash-verified
1410
self.data.add(item)
1411
1412
def
discard(self, item):
1413
self.data.discard(item)
1414
1415
class
TestCollectionABCs(ABCTestCase):
1416
Callers
15
loop_accept_pipe
Method · 0.45
future_discard_from_awaited_by
Function · 0.45
_unregister_task
Function · 0.45
_unregister_eager_task
Function · 0.45
task_done
Function · 0.45
_on_task_done
Method · 0.45
_detach
Method · 0.45
_asyncgen_finalizer_hook
Method · 0.45
_find_tests
Method · 0.45
_find_test_path
Method · 0.45
test_subclass_with_custom_hash
Method · 0.45
test_discard
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected