Top Description Interfaces Classes Enums
[default module]

Package org.python.core


This package contains the classes that implement the objects of the Python language.

Interface Summary

Modifier and TypeInterface and Description
pack-priv interface
ClassShorthand

Some shorthands used to construct method signatures, MethodTypes, etc..

public interface
CraftedPyObject

All Python object implementations that we write ourselves implement this interface.

pack-priv interface
DerivedPyObject

DerivedPyObject is a marker interface that identifies an object that is an instance of a class defined in Python.

public interface
DictPyObject

Python objects that have instance dictionaries implement this interface.

public interface
Exposed

Annotations that may be placed on elements of a Java class intended as the implementation of a Python type, and that the Exposer will look for when during the definition of a PyType.

pack-priv interface
FastCall

Support direct calls from Java to the function represented by this object, potentially without constructing an argument array.

Class Summary

Modifier and TypeClass and Description
public class
Abstract

The "abstract interface" to operations on Python objects.

pack-priv abstract class
AbstractPyObject

Class that may be used as a base for Python objects (but doesn't have to be) to supply some universally needed methods and the type.

pack-priv class
ArgParser

This class provides a parser for the positional and keyword arguments supplied during a call to a built-in function or method.

pack-priv class
ArgumentError

The type of (non-Python) exception thrown by invoking a slot or method with the wrong pattern of arguments.

pack-priv class
ArithmeticError

The Python ArithmeticError exception.

pack-priv class
AttributeError

The Python AttributeError exception.

public class
BaseBytes

Stop-gap definition to satisfy references in the project.

pack-priv class
BaseException

The Python BaseException exception.

pack-priv class
BuiltinsModule

The builtins module is definitely called "builtins".

pack-priv class
Callables

Compare CPython Objects/call.c: Py_Object_*.

pack-priv class
Clinic

A collection of methods and MethodHandles for converting arguments when calling a Java method from Python.

pack-priv class
codecs

Stop-gap definition to satisfy references in the project.

public class
CPython311Code

Our equivalent to the Python code object (PyCodeObject in CPython's C API).

pack-priv class
CPython311Frame

A PyFrame for executing CPython 3.11 byte code.

pack-priv class
CPython311Function

A PyFunction defined in CPython 3.11 byte code.

pack-priv abstract class
DataDescriptor

Base class of built-in data descriptors.

pack-priv abstract class
Descriptor

The base class of many built-in descriptors.

public class
EOFError

The Python EOFError exception.

pack-priv abstract class
Exposer

An object for tabulating the attributes of classes that define Python types or modules.

pack-priv class
IndexError

The Python IndexError exception.

pack-priv class
Interpreter

An interpreter is responsible for certain variable aspects of the "context" within which Python code executes.

public abstract class
JavaModule

Common mechanisms for all Python modules defined in Java.

public class
KeyError

The Python KeyError exception.

public class
LookupError

The Python LookupError exception.

pack-priv class
MemoryError

The Python MemoryError exception.

pack-priv abstract class
MethodDescriptor

Abstract base class for the descriptor of a method defined in Java.

public class
ModuleDef

A ModuleDef is a definition from which instances of a module may be made.

pack-priv class
ModuleExposer

A ModuleExposer provides access to the attributes of a module defined in Java (a built-in or extension module).

public class
NameError

The Python NameError exception.

pack-priv class
Opcode311

Constants for opcodes taken from CPython opcode.h

pack-priv abstract class
Operations

An Operations object provides behaviour to a Java object by defining, for its Java class, a MethodHandle on the implementation of each special method required by the implementation and enumerated in Slot.

public class
OSError

The Python OSError exception.

pack-priv class
OverflowError

The Python OverflowError exception.

public class
Py

Common run-time constants and constructors.

public class
PyBaseObject

The Python object object: all Python objects by default inherit its Python method implementations.

public class
PyBool

The Python bool object.

public class
PyBytes

The Python bytes object.

public class
PyCell

Holder for objects appearing in the closure of a function.

public abstract class
PyCode

The Python code object.

public class
PyComplex

This is a placeholder to satisfy references in implementations of __complex__ preserved from Jython 2.

public class
PyDict

The Python dict object.

public class
PyException

The Python Exception exception.

public class
PyFloat

The Python float object.

pack-priv class
PyFloatMethods

This class contains static methods implementing operations on the Python float object, supplementary to those defined in PyFloat.

public abstract class
PyFrame<
The type of code that this frame executes
C extends PyCode
>

A PyFrame is the context for the execution of code.

public abstract class
PyFunction<
implementing class of code object
C extends PyCode
>

Python function object as created by a function definition and subsequently called.

pack-priv abstract class
PyGetSetDescr

Descriptor for an attribute that has been defined by a series of Getter, Setter and Deleter that annotate access methods defined in the object implementation to get, set or delete the value.

public abstract class
PyJavaFunction

The Python builtin_function_or_method object.

public class
PyList

The Python list object that is also a Java List<Object>.

public class
PyLong

A Python int object may be represented by a java.lang.Integer or a java.math.BigInteger.

pack-priv class
PyLongMethods

This class contains static methods implementing operations on the Python int object, supplementary to those defined in PyLong.

public class
PyMapping

Abstract API for operations on mapping types, corresponding to CPython methods defined in abstract.h and with names like: PyMapping_*.

pack-priv abstract class
PyMemberDescr

Descriptor for an attribute that has been defined (by a @Member annotations) to get and optionally set or delete the value, with default type conversions.

pack-priv abstract class
PyMethodDescr

Descriptor for a method defined in Java, that is to be called from Python.

pack-priv class
PyMethodWrapper

The Python type types.MethodWrapperType (seen also as <class 'method-wrapper'>) represents a special method bound to a particular target "self" object.

public class
PyModule

The Python module object.

public class
PyNumber

Abstract API for operations on numeric types, corresponding to CPython methods defined in abstract.h and with names like: PyNumber_*.

public class
PyObjectUtil

Miscellaneous static helpers commonly needed to implement Python objects in Java.

public class
PySequence

Abstract API for operations on sequence types, corresponding to CPython methods defined in abstract.h and with names like: PySequence_*.

public class
PySlice

The Python slice object.

public class
PyTuple

The Python tuple object.

public class
PyType

The Python type object.

public class
PyUnicode

The Python str object is implemented by both PyUnicode and Java String.

pack-priv class
PyUnicodeMethods

This class contains static methods implementing operations on the Python str object, supplementary to those defined in PyUnicode.

public abstract class
PyWrapperDescr

A Descriptor for a particular definition in Java of one of the special methods of the Python data model (such as __sub__).

public class
StopIteration

The Python StopIteration exception.

public class
SystemError

The Python SystemError exception.

public class
TypeError

The Python TypeError exception.

pack-priv class
pack-priv class
UnicodeError

The Python UnicodeError exception.

public class
ValueError

The Python ValueError exception.

pack-priv class
ZeroDivisionError

The Python ZeroDivisionError exception.

Enum Summary

Modifier and TypeEnum and Description
pack-priv enum
Comparison

Selects a particular "rich comparison" operation from the repertoire supported by Opcode.COMPARE_OP, the argument to which is the code attribute of the name in this enum.

pack-priv enum
MethodSignature

The enum MethodSignature enumerates the method signatures for which an optimised implementation is possible.

pack-priv enum
ScopeKind

Exposers are of type or module kind.

pack-priv enum
Slot

This enum provides a set of structured constants that are used to refer to the special methods of the Python data model.