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

Function _make_global_funcs

Python/Turtle.py:3857–3867  ·  view source on GitHub ↗
(functions, cls, obj, init, docrevise)

Source from the content-addressed store, hash-verified

3855"""
3856
3857def _make_global_funcs(functions, cls, obj, init, docrevise):
3858 for methodname in functions:
3859 method = getattr(cls, methodname)
3860 pl1, pl2 = getmethparlist(method)
3861 if pl1 == "":
3862 print(">>>>>>", pl1, pl2)
3863 continue
3864 defstr = __func_body.format(obj=obj, init=init, name=methodname,
3865 paramslist=pl1, argslist=pl2)
3866 exec(defstr, globals())
3867 globals()[methodname].__doc__ = docrevise(method.__doc__)
3868
3869_make_global_funcs(_tg_screen_functions, _Screen,
3870 'Turtle._screen', 'Screen()', _screen_docrevise)

Callers 1

Turtle.pyFile · 0.85

Calls 2

getmethparlistFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected