C# (CSharp) Python.Runtime Namespace

Classes

Name Description
ArrayObject Implements a Python type for managed arrays. This type is essentially the same as a ClassObject, except that it provides sequence semantics to support natural array usage (indexing) from Python.
AssemblyManager The AssemblyManager maintains information about loaded assemblies namespaces and provides an interface for name-based type lookup.
Binding
BoundContructor Implements a Python type that constucts the given Type given a particular ContructorInfo.
BytesOffset
CLRObject
CallConvCdeclAttribute
ClassBase Base class for Python types that reflect managed types / classes. Concrete subclasses include ClassObject and DelegateObject. This class provides common attributes and common machinery for doing class initialization (initialization of the class __dict__). The concrete subclasses provide slot implementations appropriate for each variety of reflected type.
ClassInfo
ClassManager The ClassManager is responsible for creating and managing instances that implement the Python type objects that reflect managed classes. Each managed type reflected to Python is represented by an instance of a concrete subclass of ClassBase. Each instance is associated with a generated Python type object, whose slots point to static methods of the managed instance's class.
ClassObject Managed class that provides the implementation for reflected types. Managed classes and value types are represented in Python by actual Python type objects. Each of those type objects is associated with an instance of ClassObject, which provides its implementation.
CodeGenerator Several places in the runtime generate code on the fly to support dynamic functionality. The CodeGenerator class manages the dynamic assembly used for code generation and provides utility methods for certain repetitive tasks.
ConstructorBinder
ConstructorBinding Implements a Python type that wraps a CLR ctor call. Constructor objects support a .Overloads[] syntax to allow explicit ctor overload selection.
ConversionException
Converter
DebugUtil Debugging helper utilities.
DelegateManager The DelegateManager class manages the creation of true managed delegate instances that dispatch calls to Python methods.
DelegateObject Managed class that provides the implementation for reflected delegate types. Delegates are represented in Python by generated type objects. Each of those type objects is associated an instance of this class, which provides its implementation.
Dispatcher
DocStringAttribute
EventBinding
EventObject
ExceptionClassObject Base class for Python types that reflect managed exceptions based on System.Exception
ExceptionOffset
Exceptions Encapsulates the Python exception APIs.
ExtensionType Base class for extensions whose instances *share* a single Python type object, such as the types that represent CLR methods, fields, etc. Instances implemented by this class do not support subtyping.
FieldObject
ForbidPythonThreadsAttribute
Handler
ImportHook
Indexer
InterfaceObject Provides the implementation for reflected interface types. Managed interfaces are represented in Python by actual Python type objects. Each of those type objects is associated with an instance of this class, which provides the implementation for the Python type.
Interop
Iterator
ManagedType
MetaType
MethodBinder
MethodBinding
MethodObject
MethodSorter
MethodWrapper A MethodWrapper wraps a static method of a managed type, making it callable by Python as a PyCFunction object. This is currently used mainly to implement special cases like the CLR import hook.
ModuleDefOffset
ModuleFunctionAttribute
ModuleObject
ModulePropertyAttribute
NativeCall Provides support for calling native code indirectly through function pointers. Most of the important parts of the Python C API can just be wrapped with p/invoke, but there are some situations (specifically, calling functions through Python type structures) where we need to call functions indirectly.
ObjectOffset
PropertyObject
Py
Py.GILState
PyDict Represents a Python dictionary object. See the documentation at http://www.python.org/doc/current/api/dictObjects.html for details.
PyFloat Represents a Python float object. See the documentation at http://www.python.org/doc/current/api/floatObjects.html
PyInt Represents a Python integer object. See the documentation at http://www.python.org/doc/current/api/intObjects.html for details.
PyList Represents a standard Python list object. See the documentation at http://www.python.org/doc/current/api/listObjects.html for details.
PyLong Represents a Python long int object. See the documentation at http://www.python.org/doc/current/api/longObjects.html
PyNumber Represents a generic Python number. The methods of this class are equivalent to the Python "abstract number API". See http://www.python.org/doc/current/api/number.html for details.
PyObject Represents a generic Python object. The methods of this class are generally equivalent to the Python "abstract object API". See http://www.python.org/doc/current/api/object.html for details.
PySequence Represents a generic Python sequence. The methods of this class are equivalent to the Python "abstract sequence API". See http://www.python.org/doc/current/api/sequence.html for details.
PyString Represents a Python (ansi) string object. See the documentation at http://www.python.org/doc/current/api/stringObjects.html for details.
PyTuple Represents a Python tuple object. See the documentation at http://www.python.org/doc/current/api/tupleObjects.html for details.
PythonConsole
PythonConsole.AssemblyLoader
PythonEngine This class provides the public interface of the Python runtime.
PythonException Provides a managed interface to exceptions thrown by the Python runtime.
PythonMethodAttribute
Runtime
Thunk
TypeFlags TypeFlags(): The actual bit values for the Type Flags stored in a class. Note that the two values reserved for stackless have been put to good use as PythonNet specific flags (Managed and Subclass)
TypeManager
TypeMethod
TypeOffset
Utf32Marshaler