C# Class Python.Runtime.BoundContructor

Implements a Python type that constucts the given Type given a particular ContructorInfo.
Here mostly because I wanted a new __repr__ function for the selected constructor. An earlier implementation hung the __call__ on the ContructorBinding class and returned an Incref()ed self.pyHandle from the __get__ function.
Inheritance: ExtensionType
Mostra file Open project: pythonnet/pythonnet Class Usage Examples

Public Methods

Method Description
BoundContructor ( Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBinder, ConstructorInfo ci ) : System
tp_call ( IntPtr op, IntPtr args, IntPtr kw ) : IntPtr

BoundContructor.__call__(PyObject *callable_object, PyObject *args, PyObject *kw)

tp_dealloc ( IntPtr ob ) : void
tp_repr ( IntPtr ob ) : IntPtr

Method Details

BoundContructor() public method

public BoundContructor ( Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBinder, ConstructorInfo ci ) : System
type System.Type
pyTypeHndl System.IntPtr
ctorBinder ConstructorBinder
ci System.Reflection.ConstructorInfo
return System

tp_call() public static method

BoundContructor.__call__(PyObject *callable_object, PyObject *args, PyObject *kw)
public static tp_call ( IntPtr op, IntPtr args, IntPtr kw ) : IntPtr
op System.IntPtr
args System.IntPtr PyObject *args
kw System.IntPtr PyObject *kw
return System.IntPtr

tp_dealloc() public static method

public static tp_dealloc ( IntPtr ob ) : void
ob System.IntPtr
return void

tp_repr() public static method

public static tp_repr ( IntPtr ob ) : IntPtr
ob System.IntPtr
return System.IntPtr