C# 클래스 Python.Runtime.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.
상속: PyObject
파일 보기 프로젝트 열기: fkarb/pythonnet

공개 메소드들

메소드 설명
Concat ( PyObject other ) : PyObject

Concat Method

Return the concatenation of the sequence object with the passed in sequence object.

Contains ( PyObject item ) : bool

Contains Method

Return true if the sequence contains the given item. This method throws a PythonException if an error occurs during the check.

DelSlice ( int i1, int i2 ) : void

DelSlice Method

Deletes the slice of the sequence with the given indices.

GetSlice ( int i1, int i2 ) : PyObject

GetSlice Method

Return the slice of the sequence with the given indices.

Index ( PyObject item ) : int

Index Method

Return the index of the given item in the sequence, or -1 if the item does not appear in the sequence.

IsSequenceType ( PyObject value ) : bool

IsSequenceType Method

Returns true if the given object implements the sequence protocol.

Repeat ( int count ) : PyObject

Repeat Method

Return the sequence object repeated N times. This is equivalent to the Python expression "object * count".

SetSlice ( int i1, int i2, PyObject v ) : void

SetSlice Method

Sets the slice of the sequence with the given indices.

보호된 메소드들

메소드 설명
PySequence ( ) : System
PySequence ( IntPtr ptr ) : System

메소드 상세

Concat() 공개 메소드

Concat Method
Return the concatenation of the sequence object with the passed in sequence object.
public Concat ( PyObject other ) : PyObject
other PyObject
리턴 PyObject

Contains() 공개 메소드

Contains Method
Return true if the sequence contains the given item. This method throws a PythonException if an error occurs during the check.
public Contains ( PyObject item ) : bool
item PyObject
리턴 bool

DelSlice() 공개 메소드

DelSlice Method
Deletes the slice of the sequence with the given indices.
public DelSlice ( int i1, int i2 ) : void
i1 int
i2 int
리턴 void

GetSlice() 공개 메소드

GetSlice Method
Return the slice of the sequence with the given indices.
public GetSlice ( int i1, int i2 ) : PyObject
i1 int
i2 int
리턴 PyObject

Index() 공개 메소드

Index Method
Return the index of the given item in the sequence, or -1 if the item does not appear in the sequence.
public Index ( PyObject item ) : int
item PyObject
리턴 int

IsSequenceType() 공개 정적인 메소드

IsSequenceType Method
Returns true if the given object implements the sequence protocol.
public static IsSequenceType ( PyObject value ) : bool
value PyObject
리턴 bool

PySequence() 보호된 메소드

protected PySequence ( ) : System
리턴 System

PySequence() 보호된 메소드

protected PySequence ( IntPtr ptr ) : System
ptr System.IntPtr
리턴 System

Repeat() 공개 메소드

Repeat Method
Return the sequence object repeated N times. This is equivalent to the Python expression "object * count".
public Repeat ( int count ) : PyObject
count int
리턴 PyObject

SetSlice() 공개 메소드

SetSlice Method
Sets the slice of the sequence with the given indices.
public SetSlice ( int i1, int i2, PyObject v ) : void
i1 int
i2 int
v PyObject
리턴 void