PyFunction defined in CPython 3.11 byte code.
| Modifier and Type | Field and Description |
|---|---|
| private ArgParser |
| Access | Constructor and Description |
|---|---|
| pack-priv | CPython311Function(Interpreter
providing the module context interpreter, CPython311Code defining the function code, PyDict name space to treat as global variables globals, Object[] default positional argument values defaults, PyDict default keyword argument values kwdefaults, Object type annotations annotations, PyCell[] variable referenced but not defined here, must be
the same size as code closure)Create a Python |
| public | CPython311Function(Interpreter
providing the module context interpreter, CPython311Code defining the function code, PyDict name space to treat as global variables globals)Create a Python |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object | __call__(Object[]
all the arguments (position then keyword) args, String[] of the keyword arguments (or names)null)Implements abstract org. __call__ slot with Jython conventions, making
function implementations callable.
|
| pack-priv CPython311Frame | createFrame(Object
name space to treat as local variables locals)Implements abstract org. PyFrame that will execute this
PyFunction.
|
| argParser | back to summary |
|---|---|
| private ArgParser argParser Argument parser matched to | |
| CPython311Function | back to summary |
|---|---|
| pack-priv CPython311Function(Interpreter interpreter, CPython311Code code, PyDict globals, Object[] defaults, PyDict kwdefaults, Object annotations, PyCell[] closure) Create a Python
| |
| CPython311Function | back to summary |
|---|---|
| public CPython311Function(Interpreter interpreter, CPython311Code code, PyDict globals) Create a Python
| |
| __call__ | back to summary |
|---|---|
| pack-priv Object __call__(Object[] args, String[] names) throws Throwable Implements abstract org. Doc from org. Canonical
the return from the call
| |
| createFrame | back to summary |
|---|---|
| pack-priv CPython311Frame createFrame(Object locals) Implements abstract org. Doc from org. Create a
| |