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

Function _nest_function

Lib/pyclbr.py:89–92  ·  view source on GitHub ↗

Return a Function after nesting within ob.

(ob, func_name, lineno, end_lineno, is_async=False)

Source from the content-addressed store, hash-verified

87# These 2 functions are used in these tests
88# Lib/test/test_pyclbr, Lib/idlelib/idle_test/test_browser.py
89def _nest_function(ob, func_name, lineno, end_lineno, is_async=False):
90 "Return a Function after nesting within ob."
91 return Function(ob.module, func_name, ob.file, lineno,
92 parent=ob, is_async=is_async, end_lineno=end_lineno)
93
94def _nest_class(ob, class_name, lineno, end_lineno, super=None):
95 "Return a Class after nesting within ob."

Callers

nothing calls this directly

Calls 1

FunctionClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…