MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / __methodDict

Function __methodDict

Python/Turtle.py:187–195  ·  view source on GitHub ↗

helper function for Scrolled Canvas

(cls, _dict)

Source from the content-addressed store, hash-verified

185## to ScrolledCanvas class
186
187def __methodDict(cls, _dict):
188 """helper function for Scrolled Canvas"""
189 baseList = list(cls.__bases__)
190 baseList.reverse()
191 for _super in baseList:
192 __methodDict(_super, _dict)
193 for key, value in cls.__dict__.items():
194 if type(value) == types.FunctionType:
195 _dict[key] = value
196
197def __methods(cls):
198 """helper function for Scrolled Canvas"""

Callers 2

__methodsFunction · 0.85
__forwardmethodsFunction · 0.85

Calls 1

reverseMethod · 0.45

Tested by

no test coverage detected