MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / deepvalues

Function deepvalues

tools/python-3.11.9-amd64/Lib/http/cookiejar.py:1227–1239  ·  view source on GitHub ↗

Iterates over nested mapping, depth-first

(mapping)

Source from the content-addressed store, hash-verified

1225 return False
1226
1227def deepvalues(mapping):
1228 """Iterates over nested mapping, depth-first"""
1229 for obj in list(mapping.values()):
1230 mapping = False
1231 try:
1232 obj.items
1233 except AttributeError:
1234 pass
1235 else:
1236 mapping = True
1237 yield from deepvalues(obj)
1238 if not mapping:
1239 yield obj
1240
1241
1242# Used as second parameter to dict.get() method, to distinguish absent

Callers 1

__iter__Method · 0.85

Calls 2

listFunction · 0.85
valuesMethod · 0.45

Tested by

no test coverage detected