MCPcopy 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

init_sorted_listFunction · 0.45
init_sorted_listFunction · 0.45
stress_clearFunction · 0.45
stress_addFunction · 0.45
stress_containsFunction · 0.45
stress_discard2Function · 0.45
stress_irangeFunction · 0.45
stress_indexFunction · 0.45
test_copyFunction · 0.45
test_copy_copyFunction · 0.45
stress_clearFunction · 0.45

Calls 1

__init__Method · 0.95

Tested by 13

stress_clearFunction · 0.36
stress_addFunction · 0.36
stress_containsFunction · 0.36
stress_discard2Function · 0.36
stress_irangeFunction · 0.36
stress_indexFunction · 0.36
test_copyFunction · 0.36
test_copy_copyFunction · 0.36
stress_clearFunction · 0.36
stress_addFunction · 0.36
stress_containsFunction · 0.36
stress_discard2Function · 0.36