Staging: this is not the live site, pydocs.org.
Information about a Python function, including methods.
Members of Function
c
- children
- A dictionary mapping names to descriptors for nested functions and classes.
f
- file
- Name of the file in which the function is defined.
i
- is_async
- True for functions that are defined with the async prefix, False otherwise.
l
- lineno
- The line number in the file where the definition starts.
m
- module
- The name of the module defining the function described.
n
- name
- The name of the function.
p
- parent
- For top-level functions, None.