Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ __len__
Method
__len__
tools/python-3.11.9-amd64/Lib/cgi.py:587–589 ·
view source on GitHub ↗
Dictionary style len(x) support.
(self)
Source
from the content-addressed store, hash-verified
585
return
any(item.name == key
for
item in self.list)
586
587
def
__len__(self):
588
""
"Dictionary style len(x) support."
""
589
return
len(self.keys())
590
591
def
__bool__(self):
592
if
self.list is None:
Callers
nothing calls this directly
Calls
1
keys
Method · 0.95
Tested by
no test coverage detected