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

Function __methodDict

Lib/turtle.py:286–294  ·  view source on GitHub ↗

helper function for Scrolled Canvas

(cls, _dict)

Source from the content-addressed store, hash-verified

284## to ScrolledCanvas class
285
286def __methodDict(cls, _dict):
287 """helper function for Scrolled Canvas"""
288 baseList = list(cls.__bases__)
289 baseList.reverse()
290 for _super in baseList:
291 __methodDict(_super, _dict)
292 for key, value in cls.__dict__.items():
293 if type(value) == types.FunctionType:
294 _dict[key] = value
295
296def __methods(cls):
297 """helper function for Scrolled Canvas"""

Callers 2

__methodsFunction · 0.85
__forwardmethodsFunction · 0.85

Calls 3

listClass · 0.85
reverseMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…