PyFrame for executing CPython 3.11 byte code.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final Object[] | |
| pack-priv final Object[] | fastlocals
All local variables, named in |
| private static final String | |
| pack-priv Object | returnValue
Assigned eventually by return statement (or stays None). |
| pack-priv int | stacktop
Index of first empty space on the value stack. |
| private static final String | |
| pack-priv final Object[] | valuestack
Value stack. |
| Access | Constructor and Description |
|---|---|
| protected | CPython311Frame(CPython311Function
that this frame executes func, Object local name space (may be locals)null)Create a |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object | |
| private void | |
| private static TypeError | Returns: an exception to throwthe duplicate key error ke,providing a function name for context func)Create a |
| private static TypeError | Returns: an exception to throwproviding a function name for context func, Object the alleged mapping kwargs)Create a |
| private static SystemError |
| builtins | back to summary |
|---|---|
| private final Map<Object, Object> builtins The built-in objects from | |
| EMPTY_OBJECT_ARRAY | back to summary |
|---|---|
| private static final Object[] EMPTY_OBJECT_ARRAY | |
| fastlocals | back to summary |
|---|---|
| pack-priv final Object[] fastlocals All local variables, named in | |
| NAME_ERROR_MSG | back to summary |
|---|---|
| private static final String NAME_ERROR_MSG | |
| returnValue | back to summary |
|---|---|
| pack-priv Object returnValue Assigned eventually by return statement (or stays None). | |
| stacktop | back to summary |
|---|---|
| pack-priv int stacktop Index of first empty space on the value stack. | |
| VALUE_AFTER_STAR | back to summary |
|---|---|
| private static final String VALUE_AFTER_STAR | |
| valuestack | back to summary |
|---|---|
| pack-priv final Object[] valuestack Value stack. | |
| CPython311Frame | back to summary |
|---|---|
| protected CPython311Frame(CPython311Function func, Object locals) Create a
This will set the The func argument also locates the code object for the frame, the properties of which determine many characteristics of the frame.
| |
| eval | back to summary |
|---|---|
| pack-priv Object eval() Implements abstract org. Doc from org. Execute the code in this frame. | |
| getMethod | back to summary |
|---|---|
| private void getMethod(Object obj, String name, int offset) throws AttributeError, Throwable A specialised version of
The normal behaviour of
Case 1 supports an optimisation that is possible when the type of
the self object
| |
| kwargsKeyError | back to summary |
|---|---|
| private static TypeError kwargsKeyError(KeyError. Create a
an exception to throw | |
| kwargsTypeError | back to summary |
|---|---|
| private static TypeError kwargsTypeError(Object func, Object kwargs) Create a an exception to throw | |
| noLocals | back to summary |
|---|---|
| private static SystemError noLocals(String action, String name) Generate error to throw when we cannot access locals. | |