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

Class Function

Lib/pyclbr.py:68–75  ·  view source on GitHub ↗

Information about a Python function, including methods.

Source from the content-addressed store, hash-verified

66
67# Odd Function and Class signatures are for back-compatibility.
68class Function(_Object):
69 "Information about a Python function, including methods."
70 def __init__(self, module, name, file, lineno,
71 parent=None, is_async=False, *, end_lineno=None):
72 super().__init__(module, name, file, lineno, end_lineno, parent)
73 self.is_async = is_async
74 if isinstance(parent, Class):
75 parent.methods[name] = lineno
76
77
78class Class(_Object):

Callers 2

_nest_functionFunction · 0.70
visit_FunctionDefMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…