MCPcopy Index your code
hub / github.com/python/cpython / fromkeys

Method fromkeys

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

Source from the content-addressed store, hash-verified

1255
1256 @classmethod
1257 def fromkeys(cls, iterable, value=None):
1258 d = cls()
1259 for key in iterable:
1260 d[key] = value
1261 return d
1262
1263
1264################################################################################

Callers 1

test_allMethod · 0.95

Calls 1

clsClass · 0.50

Tested by 1

test_allMethod · 0.76