MCPcopy Create free account
hub / github.com/drgrib/dotmap / fromkeys

Method fromkeys

dotmap/__init__.py:232–235  ·  view source on GitHub ↗
(cls, seq, value=None)

Source from the content-addressed store, hash-verified

230 return self._map.viewvalues()
231 @classmethod
232 def fromkeys(cls, seq, value=None):
233 d = cls()
234 d._map = OrderedDict.fromkeys(seq, value)
235 return d
236 def __getstate__(self): return self.__dict__
237 def __setstate__(self, d): self.__dict__.update(d)
238 # bannerStr

Callers 2

test_fromkeysMethod · 0.80
__init__.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

test_fromkeysMethod · 0.64