MCPcopy Index your code
hub / github.com/clips/pattern / fromkeys

Method fromkeys

pattern/vector/__init__.py:137–138  ·  view source on GitHub ↗
(cls, k, default=None)

Source from the content-addressed store, hash-verified

135 dict.__init__(self, *args, **kwargs)
136 @classmethod
137 def fromkeys(cls, k, default=None):
138 return readonlydict((k, default) for k in k)
139 def copy(self):
140 return readonlydict(self)
141 def __setitem__(self, k, v):

Callers 5

stemmer.pyFile · 0.45
__init__.pyFile · 0.45
saveMethod · 0.45
information_gainMethod · 0.45
filterMethod · 0.45

Calls 1

readonlydictClass · 0.85

Tested by

no test coverage detected