Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/grantjenks/python-sortedcontainers
/ clear
Method
clear
tests/sortedcollection.py:99–100 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
97
key = property(_getkey, _setkey, _delkey,
'key function'
)
98
99
def
clear(self):
100
self.__init__([], self._key)
101
102
def
copy(self):
103
return
self.__class__(self, self._key)
Callers
15
sortedcollection.py
File · 0.45
init_sorted_list
Function · 0.45
init_sorted_list
Function · 0.45
stress_clear
Function · 0.45
stress_add
Function · 0.45
stress_contains
Function · 0.45
stress_discard2
Function · 0.45
stress_irange
Function · 0.45
stress_index
Function · 0.45
test_copy
Function · 0.45
test_copy_copy
Function · 0.45
stress_clear
Function · 0.45
Calls
1
__init__
Method · 0.95
Tested by
13
stress_clear
Function · 0.36
stress_add
Function · 0.36
stress_contains
Function · 0.36
stress_discard2
Function · 0.36
stress_irange
Function · 0.36
stress_index
Function · 0.36
test_copy
Function · 0.36
test_copy_copy
Function · 0.36
stress_clear
Function · 0.36
stress_add
Function · 0.36
stress_contains
Function · 0.36
stress_discard2
Function · 0.36