MCPcopy Index your code
hub / github.com/RustPython/RustPython / fromkeys

Method fromkeys

Lib/collections/__init__.py:1217–1221  ·  view source on GitHub ↗
(cls, iterable, value=None)

Source from the content-addressed store, hash-verified

1215
1216 @classmethod
1217 def fromkeys(cls, iterable, value=None):
1218 d = cls()
1219 for key in iterable:
1220 d[key] = value
1221 return d
1222
1223
1224################################################################################

Callers 1

test_allMethod · 0.95

Calls 1

clsClass · 0.50

Tested by 1

test_allMethod · 0.76