Top Description Inners Fields Constructors Methods
org.python.core

public abstract Class PySequence

extends PyObject
Class Inheritance
Known Direct Subclasses
org.python.core.PySequenceList, org.python.core.PyXRange, org.python.core.AstList, org.python.core.BaseBytes, org.python.core.Py2kBuffer, org.python.core.PyArray, org.python.core.PyBaseString, org.python.core.PyMemoryView

The abstract superclass of PyObjects that implements a Sequence. Minimize the work in creating such objects. Method names are designed to make it possible for subclasses of PySequence to implement java.util.List. Subclasses must also implement get, getslice, and repeat methods. Subclasses that are mutable should also implement: set, setslice, del, and delRange.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
PySequence.DefaultIndexDelegate

Class defining the default behaviour of sequences with respect to slice assignment, etc., which is the one correct for list.

Field Summary

Modifier and TypeField and Description
protected SequenceIndexDelegate
delegator

A delegate that handles index checking and manipulation for get, set and del operations on this sequence in the form of a "pluggable behaviour".

Inherited from org.python.core.PyObject:
attributesgcMonitorGlobalobjtypeTYPE

Constructor Summary

AccessConstructor and Description
protected
PySequence(PyType
actual (Python) type of sub-class
type
)

Construct a PySequence for the given sub-type with the default index behaviour.

protected
PySequence(PyType
actual (Python) type of sub-class
type
,
SequenceIndexDelegate
specific index behaviour (or null)
behaviour
)

Construct a PySequence for the given sub-type with custom index behaviour.

Method Summary

Modifier and TypeMethod and Description
public void
__delitem__(PyObject
the key to be removed from the container
index
)

Overrides org.python.core.PyObject.__delitem__.

Equivalent to the standard Python __delitem__ method.

public void
public PyObject
__eq__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PyObject.__eq__.

Equivalent to the standard Python __eq__ method.

public PyObject
__finditem__(int
the key to lookup in this sequence.
index
)

Overrides org.python.core.PyObject.__finditem__.

A variant of the __finditem__ method which accepts a primitive int as the key.

public PyObject
__finditem__(PyObject
the key to lookup in this container
index
)

Overrides org.python.core.PyObject.__finditem__.

Very similar to the standard Python __getitem__ method.

public PyObject
__ge__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PyObject.__ge__.

Equivalent to the standard Python __ge__ method.

public PyObject
__getitem__(PyObject
the key to lookup in this container.
index
)

Overrides org.python.core.PyObject.__getitem__.

Equivalent to the standard Python __getitem__ method.

public PyObject
public PyObject
__gt__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PyObject.__gt__.

Equivalent to the standard Python __gt__ method.

public PyObject
__iter__()

Overrides org.python.core.PyObject.__iter__.

Return an iterator that is used to iterate the element of this sequence.

public PyObject
__le__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PyObject.__le__.

Equivalent to the standard Python __le__ method.

public PyObject
__lt__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PyObject.__lt__.

Equivalent to the standard Python __lt__ method.

public PyObject
__ne__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PyObject.__ne__.

Equivalent to the standard Python __ne__ method.

public boolean
__nonzero__()

Overrides org.python.core.PyObject.__nonzero__.

Equivalent to the standard Python __nonzero__ method.

public void
__setitem__(int
the key whose value will be set
index
,
PyObject
the value to set this key to
value
)

Overrides org.python.core.PyObject.__setitem__.

A variant of the __setitem__ method which accepts a primitive int as the key.

public void
__setitem__(PyObject
the key whose value will be set
index
,
PyObject
the value to set this key to
value
)

Overrides org.python.core.PyObject.__setitem__.

Equivalent to the standard Python __setitem__ method.

public void
public synchronized Object
__tojava__(Class<?>
the Class to convert this PyObject to.
c
)

Overrides org.python.core.PyObject.__tojava__.

Equivalent to the Jython __tojava__ method.

protected int
boundToSequence(int index)

Adjusts index such that it's ≥0 and ≤ __len__.

protected static int

Returns:

value ≥ 0 is the index where the sequences differs. -1: reached the end of o1 without a difference -2: reached the end of both sequences without a difference -3: reached the end of o2 without a difference
cmp
(PyObject o1, int ol1, PyObject o2, int ol2)

Compare the specified object/length pairs.

protected void
del(int
index of the element to delete.
index
)

Deletes an element from the sequence (and closes up the gap).

protected void
delRange(int
the position of the first element.
start
,
int
one more than the position of the last element.
stop
)

Deletes a contiguous sub-sequence (and closes up the gap).

protected void
delslice(int
the position of the first element.
start
,
int
beyond the position of the last element (not necessarily just beyond).
stop
,
int
from one element to the next (positive or negative)
step
,
int
number of elements to delete
n
)

Deletes a simple or extended slice and closes up the gap(s).

protected static PySequence
fastSequence(PyObject seq, String msg)

Return a copy of a sequence where the __len__() method is telling the truth.

protected abstract PyObject

Returns:

a sequence corresponding the the given range of elements.
getslice
(int
the position of the first element.
start
,
int
one more than the position of the last element.
stop
,
int
the step size.
step
)

Returns a range of elements from the sequence.

public boolean
public boolean
public boolean
protected boolean

Returns:

true if subclass of other
isSubType
(PyObject
PyObject
other
)

isSubType tailored for PySequence binops.

protected abstract PyObject

Returns:

the element at the given position in the list.
pyget
(int
index of element to return.
index
)

Returns the element of the sequence at the given index.

protected void
pyset(int
index of the element to set.
index
,
PyObject
the value to set this element to.
value
)

Sets the indexed element of the sequence to the given value.

protected abstract PyObject

Returns:

this sequence repeated count times.
repeat
(int
the number of times to repeat the sequence.
count
)

Returns a (concrete subclass of) PySequence that repeats the given sequence, as in the implementation of __mul__ for strings.

protected String
runsupportedopMessage(String op, PyObject o2)

Overrides org.python.core.PyObject.runsupportedopMessage.

Return sequence-specific error messages suitable for substitution.

pack-priv final void
pack-priv final void
pack-priv final PyObject
pack-priv final PyObject
seq___finditem__(int index)

pack-priv final PyObject
pack-priv final PyObject
pack-priv final PyObject
pack-priv final PyObject
pack-priv final PyObject
pack-priv final PyObject
pack-priv final PyObject
pack-priv final PyObject
pack-priv final PyObject
pack-priv final boolean
pack-priv final void
pack-priv final void
protected void
setslice(int
the position of the first element.
start
,
int
one more than the position of the last element.
stop
,
int
the step size.
step
,
PyObject
an object consistent with the slice assignment
value
)

Sets the given range of elements according to Python slice assignment semantics.

protected static final int
sliceLength(int start, int stop, long step)

Make step a long in case adding the start, stop and step together overflows an int.

protected String
unsupportedopMessage(String op, PyObject o2)

Overrides org.python.core.PyObject.unsupportedopMessage.

Return sequence-specific error messages suitable for substitution.

Inherited from org.python.core.PyObject:
__abs____add____and____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____cmp____coerce____coerce_ex____complex____contains____delattr____delattr____delete____delitem____delslice____dir____div____divmod____ensure_finalizer____findattr____findattr____findattr_ex____finditem____float____floordiv____format____get____getattr____getattr____getitem____getnewargs____getslice____hash____hex____iadd____iand____idiv____idivmod____ifloordiv____ilshift____imod____imul____index____int____invert____ior____ipow____irshift____isub____iternext____itruediv____ixor____len____long____lshift____mod____mul____neg____not____oct____or____pos____pow____pow____radd____rand____rawdir____rdiv____rdivmod____reduce____reduce_ex____reduce_ex____repr____rfloordiv____rlshift____rmod____rmul____ror____rpow____rrshift____rshift____rsub____rtruediv____rxor____set____setattr____setattr____setitem____setslice____str____sub____truediv____trunc____unicode____xor___add_and_basic_add_basic_and_basic_div_basic_divmod_basic_floordiv_basic_iadd_basic_iand_basic_idiv_basic_idivmod_basic_ifloordiv_basic_ilshift_basic_imod_basic_imul_basic_ior_basic_ipow_basic_irshift_basic_isub_basic_itruediv_basic_ixor_basic_lshift_basic_mod_basic_mul_basic_or_basic_pow_basic_rshift_basic_sub_basic_truediv_basic_xor_callextra_cmp_coerce_div_divmod_doget_doget_doset_eq_floordiv_ge_gt_iadd_iand_idiv_idivmod_ifloordiv_ilshift_imod_imul_in_ior_ipow_irshift_is_isnot_isub_itruediv_ixor_jcall_jcallexc_jthrow_le_lshift_lt_mod_mul_ne_notin_or_pow_rshift_sub_truediv_unsupportedop_xoradaptToCoerceTupleasDoubleasIndexasIndexasIntasIntasIterableasLongasLongasNameasNameasStringasStringasStringOrNullasStringOrNullbit_lengthconjugatedelDictdelTypedispatch__init__equalsfastGetClassfastGetDictfinalizegetDictgetJavaProxygetTypehashCodeimpAttrimplementsDescrDeleteimplementsDescrGetimplementsDescrSetinvokeinvokeinvokeinvokeinvokeinvokeisCallableisDataDescrisIndexisIntegerjdontdelmergeClassDictmergeDictAttrmergeListAttrnoAttributeErrorobject___contains__object___delattr__object___delattr__object___findattr__object___format__object___getattribute__object___hash__object___init__object___new__object___reduce__object___reduce_ex__object___setattr__object___setattr__object___subclasshook__object_toStringproxyInitreadonlyAttributeErrorsetDictsetTypetoString

Field Detail

delegatorback to summary
protected SequenceIndexDelegate delegator

A delegate that handles index checking and manipulation for get, set and del operations on this sequence in the form of a "pluggable behaviour". Because different types of sequence exhibit subtly different behaviour, there is scope for subclasses to customise the behaviour with their own extension of SequenceIndexDelegate.

Constructor Detail

PySequenceback to summary
protected PySequence(PyType type)

Construct a PySequence for the given sub-type with the default index behaviour.

Parameters
type:PyType

actual (Python) type of sub-class

PySequenceback to summary
protected PySequence(PyType type, SequenceIndexDelegate behaviour)

Construct a PySequence for the given sub-type with custom index behaviour. In practice, restrictions on the construction of inner classes will mean null has to be passed and the actual delegator assigned later.

Parameters
type:PyType

actual (Python) type of sub-class

behaviour:SequenceIndexDelegate

specific index behaviour (or null)

Method Detail

__delitem__back to summary
public void __delitem__(PyObject index)

Overrides org.python.core.PyObject.__delitem__.

Doc from org.python.core.PyObject.__delitem__.

Equivalent to the standard Python __delitem__ method.

Parameters
index:PyObject

the key to be removed from the container

Annotations
@Override
__delslice__back to summary
public void __delslice__(PyObject start, PyObject stop, PyObject step)

Overrides org.python.core.PyObject.__delslice__.

Annotations
@Override
__eq__back to summary
public PyObject __eq__(PyObject o)

Overrides org.python.core.PyObject.__eq__.

Doc from org.python.core.PyObject.__eq__.

Equivalent to the standard Python __eq__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

Annotations
@Override

__finditem__back to summary
public PyObject __finditem__(int index)

Overrides org.python.core.PyObject.__finditem__.

Doc from org.python.core.PyObject.__finditem__.

A variant of the __finditem__ method which accepts a primitive int as the key. By default, this method will call __finditem__(PyObject key) with the appropriate args. The only reason to override this method is for performance.

Parameters
index:int

the key to lookup in this sequence.

Returns:PyObject

the value corresponding to key or null if key is not found.

Annotations
@Override

__finditem__back to summary
public PyObject __finditem__(PyObject index)

Overrides org.python.core.PyObject.__finditem__.

Doc from org.python.core.PyObject.__finditem__.

Very similar to the standard Python __getitem__ method. Instead of throwing a KeyError if the item isn't found, this just returns null. Classes that wish to implement __getitem__ should override this method instead (with the appropriate semantics.

Parameters
index:PyObject

the key to lookup in this container

Returns:PyObject

the value corresponding to key or null if key is not found

Annotations
@Override

__ge__back to summary
public PyObject __ge__(PyObject o)

Overrides org.python.core.PyObject.__ge__.

Doc from org.python.core.PyObject.__ge__.

Equivalent to the standard Python __ge__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

Annotations
@Override

__getitem__back to summary
public PyObject __getitem__(PyObject index)

Overrides org.python.core.PyObject.__getitem__.

Doc from org.python.core.PyObject.__getitem__.

Equivalent to the standard Python __getitem__ method. This method should not be overridden. Override the __finditem__ method instead.

Parameters
index:PyObject

the key to lookup in this container.

Returns:PyObject

the value corresponding to that key.

Annotations
@Override

__getslice__back to summary
public PyObject __getslice__(PyObject start, PyObject stop, PyObject step)

Overrides org.python.core.PyObject.__getslice__.

Annotations
@Override
__gt__back to summary
public PyObject __gt__(PyObject o)

Overrides org.python.core.PyObject.__gt__.

Doc from org.python.core.PyObject.__gt__.

Equivalent to the standard Python __gt__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

Annotations
@Override

__iter__back to summary
public PyObject __iter__()

Overrides org.python.core.PyObject.__iter__.

Doc from org.python.core.PyObject.__iter__.

Return an iterator that is used to iterate the element of this sequence. From version 2.2, this method is the primary protocol for looping over sequences.

If a PyObject subclass should support iteration based in the __finditem__() method, it must supply an implementation of __iter__() like this:

public PyObject __iter__() {
    return new PySequenceIter(this);
}
When iterating over a python sequence from java code, it should be done with code like this:
for (PyObject item : seq.asIterable()) {
    // Do something with item
}
Annotations
@Override
__le__back to summary
public PyObject __le__(PyObject o)

Overrides org.python.core.PyObject.__le__.

Doc from org.python.core.PyObject.__le__.

Equivalent to the standard Python __le__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

Annotations
@Override

__lt__back to summary
public PyObject __lt__(PyObject o)

Overrides org.python.core.PyObject.__lt__.

Doc from org.python.core.PyObject.__lt__.

Equivalent to the standard Python __lt__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

Annotations
@Override

__ne__back to summary
public PyObject __ne__(PyObject o)

Overrides org.python.core.PyObject.__ne__.

Doc from org.python.core.PyObject.__ne__.

Equivalent to the standard Python __ne__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

Annotations
@Override

__nonzero__back to summary
public boolean __nonzero__()

Overrides org.python.core.PyObject.__nonzero__.

Doc from org.python.core.PyObject.__nonzero__.

Equivalent to the standard Python __nonzero__ method. Returns whether of not a given PyObject is considered true.

Annotations
@Override
__setitem__back to summary
public void __setitem__(int index, PyObject value)

Overrides org.python.core.PyObject.__setitem__.

Doc from org.python.core.PyObject.__setitem__.

A variant of the __setitem__ method which accepts a primitive int as the key. By default, this will call __setitem__(PyObject key, PyObject value) with the appropriate args. The only reason to override this method is for performance.

Parameters
index:int

the key whose value will be set

value:PyObject

the value to set this key to

Annotations
@Override
__setitem__back to summary
public void __setitem__(PyObject index, PyObject value)

Overrides org.python.core.PyObject.__setitem__.

Doc from org.python.core.PyObject.__setitem__.

Equivalent to the standard Python __setitem__ method.

Parameters
index:PyObject

the key whose value will be set

value:PyObject

the value to set this key to

Annotations
@Override
__setslice__back to summary
public void __setslice__(PyObject start, PyObject stop, PyObject step, PyObject value)

Overrides org.python.core.PyObject.__setslice__.

Annotations
@Override
__tojava__back to summary
public synchronized Object __tojava__(Class<?> c) throws PyIgnoreMethodTag

Overrides org.python.core.PyObject.__tojava__.

Doc from org.python.core.PyObject.__tojava__.

Equivalent to the Jython __tojava__ method. Tries to coerce this object to an instance of the requested Java class. Returns the special object Py.NoConversion if this PyObject can not be converted to the desired Java class.

Parameters
c:Class<?>

the Class to convert this PyObject to.

Annotations
@Override
boundToSequenceback to summary
protected int boundToSequence(int index)

Adjusts index such that it's ≥0 and ≤ __len__. If index starts off negative, it's treated as an index from the end of the sequence going back to the start.

cmpback to summary
protected static int cmp(PyObject o1, int ol1, PyObject o2, int ol2)

Compare the specified object/length pairs.

Returns:int

value ≥ 0 is the index where the sequences differs. -1: reached the end of o1 without a difference -2: reached the end of both sequences without a difference -3: reached the end of o2 without a difference

delback to summary
protected void del(int index)

Deletes an element from the sequence (and closes up the gap).

Parameters
index:int

index of the element to delete.

delRangeback to summary
protected void delRange(int start, int stop)

Deletes a contiguous sub-sequence (and closes up the gap).

Parameters
start:int

the position of the first element.

stop:int

one more than the position of the last element.

delsliceback to summary
protected void delslice(int start, int stop, int step, int n)

Deletes a simple or extended slice and closes up the gap(s). The slice parameters [start:stop:step] mean what they would in Python, after application of the "end-relative" rules for negative numbers and None. The count n is as supplied by PySlice#indicesEx(int). This method is unsafe in that slice parameters are assumed correct.

Parameters
start:int

the position of the first element.

stop:int

beyond the position of the last element (not necessarily just beyond).

step:int

from one element to the next (positive or negative)

n:int

number of elements to delete

fastSequenceback to summary
protected static PySequence fastSequence(PyObject seq, String msg)

Return a copy of a sequence where the __len__() method is telling the truth.

getsliceback to summary
protected abstract PyObject getslice(int start, int stop, int step)

Returns a range of elements from the sequence.

Parameters
start:int

the position of the first element.

stop:int

one more than the position of the last element.

step:int

the step size.

Returns:PyObject

a sequence corresponding the the given range of elements.

isMappingTypeback to summary
public boolean isMappingType() throws PyIgnoreMethodTag

Overrides org.python.core.PyObject.isMappingType.

Annotations
@Override
isNumberTypeback to summary
public boolean isNumberType() throws PyIgnoreMethodTag

Overrides org.python.core.PyObject.isNumberType.

Annotations
@Override
isSequenceTypeback to summary
public boolean isSequenceType()

Overrides org.python.core.PyObject.isSequenceType.

Annotations
@Override
isSubTypeback to summary
protected boolean isSubType(PyObject other)

isSubType tailored for PySequence binops.

Parameters
other:PyObject

PyObject

Returns:boolean

true if subclass of other

pygetback to summary
protected abstract PyObject pyget(int index)

Returns the element of the sequence at the given index. This is an extension point called by PySequence in its implementation of __getitem__ It is guaranteed by PySequence that when it calls pyget(int) the index is within the bounds of the array. Any other clients must make the same guarantee.

Parameters
index:int

index of element to return.

Returns:PyObject

the element at the given position in the list.

pysetback to summary
protected void pyset(int index, PyObject value)

Sets the indexed element of the sequence to the given value. This is an extension point called by PySequence in its implementation of __setitem__ It is guaranteed by PySequence that when it calls pyset(int) the index is within the bounds of the array. Any other clients must make the same guarantee.

Parameters
index:int

index of the element to set.

value:PyObject

the value to set this element to.

repeatback to summary
protected abstract PyObject repeat(int count)

Returns a (concrete subclass of) PySequence that repeats the given sequence, as in the implementation of __mul__ for strings.

Parameters
count:int

the number of times to repeat the sequence.

Returns:PyObject

this sequence repeated count times.

runsupportedopMessageback to summary
protected String runsupportedopMessage(String op, PyObject o2)

Overrides org.python.core.PyObject.runsupportedopMessage.

Return sequence-specific error messages suitable for substitution. {0} is the op name. {1} is the left operand type. {2} is the right operand type.

Annotations
@Override
seq___delitem__back to summary
pack-priv final void seq___delitem__(PyObject index)
seq___delslice__back to summary
pack-priv final void seq___delslice__(PyObject start, PyObject stop, PyObject step)
seq___eq__back to summary
pack-priv final PyObject seq___eq__(PyObject o)
seq___finditem__back to summary
pack-priv final PyObject seq___finditem__(int index)
seq___finditem__back to summary
pack-priv final PyObject seq___finditem__(PyObject index)
seq___ge__back to summary
pack-priv final PyObject seq___ge__(PyObject o)
seq___getitem__back to summary
pack-priv final PyObject seq___getitem__(PyObject index)
seq___getslice__back to summary
pack-priv final PyObject seq___getslice__(PyObject start, PyObject stop, PyObject step)
seq___gt__back to summary
pack-priv final PyObject seq___gt__(PyObject o)
seq___iter__back to summary
pack-priv final PyObject seq___iter__()
seq___le__back to summary
pack-priv final PyObject seq___le__(PyObject o)
seq___lt__back to summary
pack-priv final PyObject seq___lt__(PyObject o)
seq___ne__back to summary
pack-priv final PyObject seq___ne__(PyObject o)
seq___nonzero__back to summary
pack-priv final boolean seq___nonzero__()
seq___setitem__back to summary
pack-priv final void seq___setitem__(PyObject index, PyObject value)
seq___setslice__back to summary
pack-priv final void seq___setslice__(PyObject start, PyObject stop, PyObject step, PyObject value)
setsliceback to summary
protected void setslice(int start, int stop, int step, PyObject value)

Sets the given range of elements according to Python slice assignment semantics. If the step size is one, it is a simple slice and the operation is equivalent to deleting that slice, then inserting the value at that position, regarding the value as a sequence (if possible) or as a single element if it is not a sequence. If the step size is not one, but start==stop, it is equivalent to insertion at that point. If the step size is not one, and start!=stop, the slice defines a certain number of elements to be replaced, and the value must be a sequence of exactly that many elements (or convertible to such a sequence).

Parameters
start:int

the position of the first element.

stop:int

one more than the position of the last element.

step:int

the step size.

value:PyObject

an object consistent with the slice assignment

sliceLengthback to summary
protected static final int sliceLength(int start, int stop, long step)

Make step a long in case adding the start, stop and step together overflows an int.

unsupportedopMessageback to summary
protected String unsupportedopMessage(String op, PyObject o2)

Overrides org.python.core.PyObject.unsupportedopMessage.

Return sequence-specific error messages suitable for substitution. {0} is the op name. {1} is the left operand type. {2} is the right operand type.

Annotations
@Override
org.python.core back to summary

protected Class PySequence.DefaultIndexDelegate

extends SequenceIndexDelegate
Class Inheritance
Known Direct Subclasses
org.python.core.BaseBytes.IndexDelegate

Class defining the default behaviour of sequences with respect to slice assignment, etc., which is the one correct for list.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
public void
delItems(int start, int stop)

Implements abstract org.python.core.SequenceIndexDelegate.delItems.

public PyObject
public PyObject
getSlice(int start, int stop, int step)

Implements abstract org.python.core.SequenceIndexDelegate.getSlice.

public String
public int
public void
public void
setSlice(int start, int stop, int step, PyObject value)

Implements abstract org.python.core.SequenceIndexDelegate.setSlice.

Inherited from org.python.core.SequenceIndexDelegate:
checkIdxAndDelItemcheckIdxAndFindItemcheckIdxAndFindItemcheckIdxAndGetItemcheckIdxAndSetItemcheckIdxAndSetItemcheckIdxAndSetSlicedelSlicefixindexgetSlice

Constructor Detail

DefaultIndexDelegateback to summary
protected DefaultIndexDelegate()

Method Detail

delItemback to summary
public void delItem(int idx)

Implements abstract org.python.core.SequenceIndexDelegate.delItem.

Annotations
@Override
delItemsback to summary
public void delItems(int start, int stop)

Implements abstract org.python.core.SequenceIndexDelegate.delItems.

Annotations
@Override
getItemback to summary
public PyObject getItem(int idx)

Implements abstract org.python.core.SequenceIndexDelegate.getItem.

Annotations
@Override
getSliceback to summary
public PyObject getSlice(int start, int stop, int step)

Implements abstract org.python.core.SequenceIndexDelegate.getSlice.

Annotations
@Override
getTypeNameback to summary
public String getTypeName()

Implements abstract org.python.core.SequenceIndexDelegate.getTypeName.

Annotations
@Override
lenback to summary
public int len()

Implements abstract org.python.core.SequenceIndexDelegate.len.

Annotations
@Override
setItemback to summary
public void setItem(int idx, PyObject value)

Implements abstract org.python.core.SequenceIndexDelegate.setItem.

Annotations
@Override
setSliceback to summary
public void setSlice(int start, int stop, int step, PyObject value)

Implements abstract org.python.core.SequenceIndexDelegate.setSlice.

Annotations
@Override