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

Function _make_global_funcs

Lib/turtle.py:4110–4120  ·  view source on GitHub ↗
(functions, cls, obj, init, docrevise)

Source from the content-addressed store, hash-verified

4108"""
4109
4110def _make_global_funcs(functions, cls, obj, init, docrevise):
4111 for methodname in functions:
4112 method = getattr(cls, methodname)
4113 pl1, pl2 = getmethparlist(method)
4114 if pl1 == "":
4115 print(">>>>>>", pl1, pl2)
4116 continue
4117 defstr = __func_body.format(obj=obj, init=init, name=methodname,
4118 paramslist=pl1, argslist=pl2)
4119 exec(defstr, globals())
4120 globals()[methodname].__doc__ = docrevise(method.__doc__)
4121
4122_make_global_funcs(_tg_screen_functions, _Screen,
4123 'Turtle._screen', 'Screen()', _screen_docrevise)

Callers 1

turtle.pyFile · 0.85

Calls 2

getmethparlistFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…