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
파일 보기 프로젝트 열기: fkarb/pythonnet 1 사용 예제들

공개 메소드들

메소드 설명
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