MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __methodDict

Function __methodDict

tools/python-3.11.9-amd64/Lib/turtle.py:290–298  ·  view source on GitHub ↗

helper function for Scrolled Canvas

(cls, _dict)

Source from the content-addressed store, hash-verified

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

Callers 2

__methodsFunction · 0.85
__forwardmethodsFunction · 0.85

Calls 4

listFunction · 0.85
typeClass · 0.50
reverseMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected