Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/grantjenks/python-sortedcontainers
/ get_keysview
Function
get_keysview
tests/test_coverage_sorteddict.py:23–27 ·
view source on GitHub ↗
(dic)
Source
from the content-addressed store, hash-verified
21
return
value % 10
22
23
def
get_keysview(dic):
24
if
hexversion < 0x03000000:
25
return
dic.viewkeys()
26
else
:
27
return
dic.keys()
28
29
def
get_itemsview(dic):
30
if
hexversion < 0x03000000:
Callers
1
test_keysview
Function · 0.85
Calls
1
keys
Method · 0.80
Tested by
no test coverage detected