MCPcopy Create free account
hub / github.com/clips/pattern / fromkeys

Method fromkeys

pattern/web/json/ordered_dict.py:106–110  ·  view source on GitHub ↗
(cls, iterable, value=None)

Source from the content-addressed store, hash-verified

104
105 @classmethod
106 def fromkeys(cls, iterable, value=None):
107 d = cls()
108 for key in iterable:
109 d[key] = value
110 return d
111
112 def __eq__(self, other):
113 if isinstance(other, OrderedDict):

Callers 2

__init__.pyFile · 0.45
stripMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected