C# Класс Python.Runtime.PyTuple

Represents a Python tuple object. See the documentation at http://www.python.org/doc/current/api/tupleObjects.html for details.
Наследование: PySequence
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AsTuple ( PyObject value ) : PyTuple

AsTuple Method

Convert a Python object to a Python tuple if possible, raising a PythonException if the conversion is not possible. This is equivalent to the Python expression "tuple(object)".

IsTupleType ( PyObject value ) : bool

IsTupleType Method

Returns true if the given object is a Python tuple.

PyTuple ( ) : System

PyTuple Constructor

Creates a new empty PyTuple.

PyTuple ( IntPtr ptr ) : System

PyTuple Constructor

Creates a new PyTuple from an existing object reference. Note that the instance assumes ownership of the object reference. The object reference is not checked for type-correctness.

PyTuple ( PyObject o ) : System

PyTuple Constructor

Copy constructor - obtain a PyTuple from a generic PyObject. An ArgumentException will be thrown if the given object is not a Python tuple object.

Описание методов

AsTuple() публичный статический Метод

AsTuple Method
Convert a Python object to a Python tuple if possible, raising a PythonException if the conversion is not possible. This is equivalent to the Python expression "tuple(object)".
public static AsTuple ( PyObject value ) : PyTuple
value PyObject
Результат PyTuple

IsTupleType() публичный статический Метод

IsTupleType Method
Returns true if the given object is a Python tuple.
public static IsTupleType ( PyObject value ) : bool
value PyObject
Результат bool

PyTuple() публичный Метод

PyTuple Constructor
Creates a new empty PyTuple.
public PyTuple ( ) : System
Результат System

PyTuple() публичный Метод

PyTuple Constructor
Creates a new PyTuple from an existing object reference. Note that the instance assumes ownership of the object reference. The object reference is not checked for type-correctness.
public PyTuple ( IntPtr ptr ) : System
ptr System.IntPtr
Результат System

PyTuple() публичный Метод

PyTuple Constructor
Copy constructor - obtain a PyTuple from a generic PyObject. An ArgumentException will be thrown if the given object is not a Python tuple object.
public PyTuple ( PyObject o ) : System
o PyObject
Результат System