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
Afficher le fichier Open project: pythonnet/pythonnet Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

tp_call() public static méthode

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
Résultat System.IntPtr

tp_dealloc() public static méthode

public static tp_dealloc ( IntPtr ob ) : void
ob System.IntPtr
Résultat void

tp_repr() public static méthode

public static tp_repr ( IntPtr ob ) : IntPtr
ob System.IntPtr
Résultat System.IntPtr