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

Function _make_global_funcs

tools/python-3.11.9-amd64/Lib/turtle.py:3976–3986  ·  view source on GitHub ↗
(functions, cls, obj, init, docrevise)

Source from the content-addressed store, hash-verified

3974"""
3975
3976def _make_global_funcs(functions, cls, obj, init, docrevise):
3977 for methodname in functions:
3978 method = getattr(cls, methodname)
3979 pl1, pl2 = getmethparlist(method)
3980 if pl1 == "":
3981 print(">>>>>>", pl1, pl2)
3982 continue
3983 defstr = __func_body.format(obj=obj, init=init, name=methodname,
3984 paramslist=pl1, argslist=pl2)
3985 exec(defstr, globals())
3986 globals()[methodname].__doc__ = docrevise(method.__doc__)
3987
3988_make_global_funcs(_tg_screen_functions, _Screen,
3989 'Turtle._screen', 'Screen()', _screen_docrevise)

Callers 1

turtle.pyFile · 0.85

Calls 3

getmethparlistFunction · 0.85
printFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected