| java.lang.Object org.python.core.PyObject org.python.core.PySequence org.python.core.PySequenceList org.python.core.PyList
All known Subclasses: org.python.core.PyListDerived,
Method Summary | |
public PyObject | __add__(PyObject o) | public PyTuple | __getnewargs__() | public PyObject | __iadd__(PyObject o) | public PyObject | __imul__(PyObject o) | public int | __len__() | public PyObject | __radd__(PyObject o) | public PyObject | __reduce__() Used for pickling. | public void | append(PyObject o) Add a single element to the end of list. | public static void | classDictInit(PyObject dict) | public int | count(PyObject o) Return the number elements in the list that equals the argument.
Parameters: o - the argument to test for. | protected void | del(int i) | protected void | delRange(int start, int stop, int step) | public void | extend(PyObject o) Append the elements in the argument sequence to the end of the list. | protected PyObject | getslice(int start, int stop, int step) | public int | hashCode() | public int | index(PyObject o) return smallest index where an element in the list equals
the argument.
Parameters: o - the argument to test for. | public int | index(PyObject o, int start) | public int | index(PyObject o, int start, int stop) | public void | insert(int index, PyObject o) Insert the argument element into the list at the specified
index. | final PyObject | list___add__(PyObject o) | final PyObject | list___iadd__(PyObject o) | final PyObject | list___imul__(PyObject o) | final int | list___len__() | final PyObject | list___mul__(PyObject o) | final PyObject | list___radd__(PyObject o) | final PyObject | list___reduce__() | final PyObject | list___rmul__(PyObject o) | final void | list_append(PyObject o) | final int | list_count(PyObject o) | final void | list_extend(PyObject o) | final int | list_hashCode() | final int | list_index(PyObject o, int start, int stop) | final int | list_index(PyObject o, int start) | final int | list_index(PyObject o) | final void | list_init(PyObject[] args, String[] kwds) | final void | list_insert(int index, PyObject o) | final PyObject | list_pop() | final PyObject | list_pop(int n) | final void | list_remove(PyObject o) | final void | list_reverse() | final synchronized void | list_sort(PyObject compare) | final void | list_sort() | final String | list_toString() | public PyObject | pop() Removes and return the last element in the list. | public PyObject | pop(int n) Removes and return the n indexed element in the
list. | public void | remove(PyObject o) Remove the first occurence of the argument from the list. | protected PyObject | repeat(int count) | public void | reverse() Reverses the items of s in place.
The reverse() methods modify the list in place for economy
of space when reversing a large list. | protected String | runsupportedopMessage(String op, PyObject o2) | public String | safeRepr() | protected void | set(int i, PyObject value) | protected void | setslice(int start, int stop, int step, PyObject value) | public synchronized void | sort(PyObject compare) Sort the items of the list in place. | public void | sort() Sort the items of the list in place. | public String | toString() | public static void | typeSetup(PyObject dict, PyType.Newstyle marker) | protected String | unsupportedopMessage(String op, PyObject o2) |
exposed_base | final public static Class exposed_base(Code) | | |
__len__ | public int __len__()(Code) | | |
__reduce__ | public PyObject __reduce__()(Code) | | Used for pickling.
a tuple of (class, tuple) |
append | public void append(PyObject o)(Code) | | Add a single element to the end of list.
Parameters: o - the element to add. |
count | public int count(PyObject o)(Code) | | Return the number elements in the list that equals the argument.
Parameters: o - the argument to test for. Testing is done withthe == operator. |
del | protected void del(int i)(Code) | | |
delRange | protected void delRange(int start, int stop, int step)(Code) | | |
extend | public void extend(PyObject o)(Code) | | Append the elements in the argument sequence to the end of the list.
Same as s[len(s):len(s)] = o .
Parameters: o - the sequence of items to append to the list. |
getslice | protected PyObject getslice(int start, int stop, int step)(Code) | | |
hashCode | public int hashCode()(Code) | | |
index | public int index(PyObject o)(Code) | | return smallest index where an element in the list equals
the argument.
Parameters: o - the argument to test for. Testing is done withthe == operator. |
insert | public void insert(int index, PyObject o)(Code) | | Insert the argument element into the list at the specified
index.
Same as s[index:index] = [o] if index >= 0 .
Parameters: index - the position where the element will be inserted. Parameters: o - the element to insert. |
list___len__ | final int list___len__()(Code) | | |
list_hashCode | final int list_hashCode()(Code) | | |
list_reverse | final void list_reverse()(Code) | | |
list_sort | final void list_sort()(Code) | | |
pop | public PyObject pop()(Code) | | Removes and return the last element in the list.
|
pop | public PyObject pop(int n)(Code) | | Removes and return the n indexed element in the
list.
Parameters: n - the index of the element to remove and return. |
remove | public void remove(PyObject o)(Code) | | Remove the first occurence of the argument from the list.
The elements arecompared with the == operator.
Same as del s[s.index(x)]
Parameters: o - the element to search for and remove. |
reverse | public void reverse()(Code) | | Reverses the items of s in place.
The reverse() methods modify the list in place for economy
of space when reversing a large list. It doesn't return the
reversed list to remind you of this side effect.
|
setslice | protected void setslice(int start, int stop, int step, PyObject value)(Code) | | |
sort | public synchronized void sort(PyObject compare)(Code) | | Sort the items of the list in place. The compare argument is a
function of two arguments (list items) which should return
-1, 0 or 1 depending on whether the first argument is
considered smaller than, equal to, or larger than the second
argument. Note that this slows the sorting process down
considerably; e.g. to sort a list in reverse order it is much
faster to use calls to the methods sort() and reverse() than
to use the built-in function sort() with a comparison function
that reverses the ordering of the elements.
Parameters: compare - the comparison function. |
sort | public void sort()(Code) | | Sort the items of the list in place. Items is compared with the
normal relative comparison operators.
|
Methods inherited from org.python.core.PySequence | public synchronized void __delitem__(PyObject index)(Code)(Java Doc) public synchronized void __delslice__(PyObject s_start, PyObject s_stop, PyObject s_step)(Code)(Java Doc) public synchronized PyObject __eq__(PyObject o)(Code)(Java Doc) public synchronized PyObject __finditem__(int index)(Code)(Java Doc) public PyObject __finditem__(PyObject index)(Code)(Java Doc) public synchronized PyObject __ge__(PyObject o)(Code)(Java Doc) public PyObject __getitem__(PyObject index)(Code)(Java Doc) public synchronized PyObject __getslice__(PyObject s_start, PyObject s_stop, PyObject s_step)(Code)(Java Doc) public synchronized PyObject __gt__(PyObject o)(Code)(Java Doc) public PyObject __iter__()(Code)(Java Doc) public synchronized PyObject __le__(PyObject o)(Code)(Java Doc) public synchronized PyObject __lt__(PyObject o)(Code)(Java Doc) public synchronized PyObject __ne__(PyObject o)(Code)(Java Doc) public boolean __nonzero__()(Code)(Java Doc) public synchronized void __setitem__(int index, PyObject value)(Code)(Java Doc) public void __setitem__(PyObject index, PyObject value)(Code)(Java Doc) public synchronized void __setslice__(PyObject s_start, PyObject s_stop, PyObject s_step, PyObject value)(Code)(Java Doc) public synchronized Object __tojava__(Class c) throws PyIgnoreMethodTag(Code)(Java Doc) protected static int cmp(PyObject o1, int ol1, PyObject o2, int ol2)(Code)(Java Doc) protected void del(int i) throws PyException(Code)(Java Doc) protected void delRange(int start, int stop, int step)(Code)(Java Doc) protected static PyObject fastSequence(PyObject seq, String msg)(Code)(Java Doc) protected int fixindex(int index)(Code)(Java Doc) final protected static int getStart(PyObject s_start, int step, int length)(Code)(Java Doc) final protected static int getStep(PyObject s_step)(Code)(Java Doc) final protected static int getStop(PyObject s_stop, int start, int step, int length)(Code)(Java Doc) abstract protected PyObject getslice(int start, int stop, int step)(Code)(Java Doc) public boolean isMappingType() throws PyIgnoreMethodTag(Code)(Java Doc) public boolean isNumberType() throws PyIgnoreMethodTag(Code)(Java Doc) abstract protected PyObject pyget(int index)(Code)(Java Doc) abstract protected PyObject repeat(int count)(Code)(Java Doc) final synchronized void seq___delitem__(PyObject index)(Code)(Java Doc) final synchronized void seq___delslice__(PyObject s_start, PyObject s_stop, PyObject s_step)(Code)(Java Doc) final synchronized PyObject seq___eq__(PyObject o)(Code)(Java Doc) final PyObject seq___finditem__(PyObject index)(Code)(Java Doc) final synchronized PyObject seq___ge__(PyObject o)(Code)(Java Doc) final PyObject seq___getitem__(PyObject index)(Code)(Java Doc) final synchronized PyObject seq___getslice__(PyObject s_start, PyObject s_stop)(Code)(Java Doc) final synchronized PyObject seq___getslice__(PyObject s_start, PyObject s_stop, PyObject s_step)(Code)(Java Doc) final synchronized PyObject seq___gt__(PyObject o)(Code)(Java Doc) final PyObject seq___iter__()(Code)(Java Doc) final synchronized PyObject seq___le__(PyObject o)(Code)(Java Doc) final synchronized PyObject seq___lt__(PyObject o)(Code)(Java Doc) final synchronized PyObject seq___ne__(PyObject o)(Code)(Java Doc) final boolean seq___nonzero__()(Code)(Java Doc) final void seq___setitem__(PyObject index, PyObject value)(Code)(Java Doc) final synchronized void seq___setslice__(PyObject s_start, PyObject s_stop, PyObject value)(Code)(Java Doc) final synchronized void seq___setslice__(PyObject s_start, PyObject s_stop, PyObject s_step, PyObject value)(Code)(Java Doc) protected void set(int index, PyObject value)(Code)(Java Doc) protected void setslice(int start, int stop, int step, PyObject value)(Code)(Java Doc) final protected static int sliceLength(int start, int stop, int step)(Code)(Java Doc)
|
Methods inherited from org.python.core.PyObject | public PyObject __abs__()(Code)(Java Doc) public PyObject __add__(PyObject other)(Code)(Java Doc) public PyObject __and__(PyObject other)(Code)(Java Doc) public PyObject __call__(PyObject args, String keywords)(Code)(Java Doc) public PyObject __call__(PyObject arg1, PyObject args, String keywords)(Code)(Java Doc) public PyObject __call__(PyObject args)(Code)(Java Doc) public PyObject __call__()(Code)(Java Doc) public PyObject __call__(PyObject arg0)(Code)(Java Doc) public PyObject __call__(PyObject arg0, PyObject arg1)(Code)(Java Doc) public PyObject __call__(PyObject arg0, PyObject arg1, PyObject arg2)(Code)(Java Doc) public PyObject __call__(PyObject arg0, PyObject arg1, PyObject arg2, PyObject arg3)(Code)(Java Doc) public int __cmp__(PyObject other)(Code)(Java Doc) final public PyObject __coerce__(PyObject pyo)(Code)(Java Doc) public Object __coerce_ex__(PyObject o)(Code)(Java Doc) public PyComplex __complex__()(Code)(Java Doc) public boolean __contains__(PyObject o)(Code)(Java Doc) final public void __delattr__(PyString name)(Code)(Java Doc) public void __delattr__(String name)(Code)(Java Doc) public void __delete__(PyObject obj)(Code)(Java Doc) public void __delitem__(PyObject key)(Code)(Java Doc) public void __delitem__(String key)(Code)(Java Doc) public void __delslice__(PyObject s_start, PyObject s_stop, PyObject s_step)(Code)(Java Doc) public void __delslice__(PyObject start, PyObject stop)(Code)(Java Doc) public PyObject __dir__()(Code)(Java Doc) public PyObject __div__(PyObject other)(Code)(Java Doc) public PyObject __divmod__(PyObject other)(Code)(Java Doc) public PyObject __eq__(PyObject other)(Code)(Java Doc) final public PyObject __findattr__(PyString name)(Code)(Java Doc) public PyObject __findattr__(String name)(Code)(Java Doc) public PyObject __finditem__(PyObject key)(Code)(Java Doc) public PyObject __finditem__(int key)(Code)(Java Doc) public PyObject __finditem__(String key)(Code)(Java Doc) public PyFloat __float__()(Code)(Java Doc) public PyObject __floordiv__(PyObject other)(Code)(Java Doc) public PyObject __ge__(PyObject other)(Code)(Java Doc) public PyObject __get__(PyObject obj, PyObject type)(Code)(Java Doc) final public PyObject __getattr__(PyString name)(Code)(Java Doc) final public PyObject __getattr__(String name)(Code)(Java Doc) public PyObject __getitem__(int key)(Code)(Java Doc) public PyObject __getitem__(PyObject key)(Code)(Java Doc) public PyTuple __getnewargs__()(Code)(Java Doc) public PyObject __getslice__(PyObject s_start, PyObject s_stop, PyObject s_step)(Code)(Java Doc) public PyObject __getslice__(PyObject start, PyObject stop)(Code)(Java Doc) public PyObject __gt__(PyObject other)(Code)(Java Doc) final public PyInteger __hash__()(Code)(Java Doc) public PyString __hex__()(Code)(Java Doc) public PyObject __iadd__(PyObject other)(Code)(Java Doc) public PyObject __iand__(PyObject other)(Code)(Java Doc) public PyObject __idiv__(PyObject other)(Code)(Java Doc) public PyObject __idivmod__(PyObject other)(Code)(Java Doc) public PyObject __ifloordiv__(PyObject other)(Code)(Java Doc) public PyObject __ilshift__(PyObject other)(Code)(Java Doc) public PyObject __imod__(PyObject other)(Code)(Java Doc) public PyObject __imul__(PyObject other)(Code)(Java Doc) public PyObject __int__()(Code)(Java Doc) public PyObject __invert__()(Code)(Java Doc) public PyObject __ior__(PyObject other)(Code)(Java Doc) public PyObject __ipow__(PyObject other)(Code)(Java Doc) public PyObject __irshift__(PyObject other)(Code)(Java Doc) public PyObject __isub__(PyObject other)(Code)(Java Doc) public PyObject __iter__()(Code)(Java Doc) public PyObject __iternext__()(Code)(Java Doc) public PyObject __itruediv__(PyObject other)(Code)(Java Doc) public PyObject __ixor__(PyObject other)(Code)(Java Doc) public PyObject __le__(PyObject other)(Code)(Java Doc) public int __len__()(Code)(Java Doc) public PyLong __long__()(Code)(Java Doc) public PyObject __lshift__(PyObject other)(Code)(Java Doc) public PyObject __lt__(PyObject other)(Code)(Java Doc) public PyObject __mod__(PyObject other)(Code)(Java Doc) public PyObject __mul__(PyObject other)(Code)(Java Doc) public PyObject __ne__(PyObject other)(Code)(Java Doc) public PyObject __neg__()(Code)(Java Doc) public boolean __nonzero__()(Code)(Java Doc) public PyObject __not__()(Code)(Java Doc) public PyString __oct__()(Code)(Java Doc) public PyObject __or__(PyObject other)(Code)(Java Doc) public PyObject __pos__()(Code)(Java Doc) public PyObject __pow__(PyObject o2, PyObject o3)(Code)(Java Doc) public PyObject __pow__(PyObject other)(Code)(Java Doc) public PyObject __radd__(PyObject other)(Code)(Java Doc) public PyObject __rand__(PyObject other)(Code)(Java Doc) protected void __rawdir__(PyDictionary accum)(Code)(Java Doc) public PyObject __rdiv__(PyObject other)(Code)(Java Doc) public PyObject __rdivmod__(PyObject other)(Code)(Java Doc) public PyObject __reduce__()(Code)(Java Doc) public PyString __repr__()(Code)(Java Doc) public PyObject __rfloordiv__(PyObject other)(Code)(Java Doc) public PyObject __rlshift__(PyObject other)(Code)(Java Doc) public PyObject __rmod__(PyObject other)(Code)(Java Doc) public PyObject __rmul__(PyObject other)(Code)(Java Doc) public PyObject __ror__(PyObject other)(Code)(Java Doc) public PyObject __rpow__(PyObject other)(Code)(Java Doc) public PyObject __rrshift__(PyObject other)(Code)(Java Doc) public PyObject __rshift__(PyObject other)(Code)(Java Doc) public PyObject __rsub__(PyObject other)(Code)(Java Doc) public PyObject __rtruediv__(PyObject other)(Code)(Java Doc) public PyObject __rxor__(PyObject other)(Code)(Java Doc) public void __set__(PyObject obj, PyObject value)(Code)(Java Doc) final public void __setattr__(PyString name, PyObject value)(Code)(Java Doc) public void __setattr__(String name, PyObject value)(Code)(Java Doc) public void __setitem__(PyObject key, PyObject value)(Code)(Java Doc) public void __setitem__(String key, PyObject value)(Code)(Java Doc) public void __setitem__(int key, PyObject value)(Code)(Java Doc) public void __setslice__(PyObject s_start, PyObject s_stop, PyObject s_step, PyObject value)(Code)(Java Doc) public void __setslice__(PyObject start, PyObject stop, PyObject value)(Code)(Java Doc) public PyString __str__()(Code)(Java Doc) public PyObject __sub__(PyObject other)(Code)(Java Doc) public Object __tojava__(Class c)(Code)(Java Doc) public PyObject __truediv__(PyObject other)(Code)(Java Doc) public PyUnicode __unicode__()(Code)(Java Doc) public PyObject __xor__(PyObject other)(Code)(Java Doc) final public PyObject _add(PyObject o2)(Code)(Java Doc) final public PyObject _and(PyObject o2)(Code)(Java Doc) final PyObject _basic_add(PyObject o2)(Code)(Java Doc) final PyObject _basic_and(PyObject o2)(Code)(Java Doc) final PyObject _basic_div(PyObject o2)(Code)(Java Doc) final PyObject _basic_divmod(PyObject o2)(Code)(Java Doc) final PyObject _basic_floordiv(PyObject o2)(Code)(Java Doc) final PyObject _basic_lshift(PyObject o2)(Code)(Java Doc) final PyObject _basic_mod(PyObject o2)(Code)(Java Doc) final PyObject _basic_mul(PyObject o2)(Code)(Java Doc) final PyObject _basic_or(PyObject o2)(Code)(Java Doc) final PyObject _basic_pow(PyObject o2)(Code)(Java Doc) final PyObject _basic_rshift(PyObject o2)(Code)(Java Doc) final PyObject _basic_sub(PyObject o2)(Code)(Java Doc) final PyObject _basic_truediv(PyObject o2)(Code)(Java Doc) final PyObject _basic_xor(PyObject o2)(Code)(Java Doc) public PyObject _callextra(PyObject[] args, String[] keywords, PyObject starargs, PyObject kwargs)(Code)(Java Doc) final public int _cmp(PyObject o)(Code)(Java Doc) PyObject[] _coerce(PyObject other)(Code)(Java Doc) final public PyObject _div(PyObject o2)(Code)(Java Doc) final public PyObject _divmod(PyObject o2)(Code)(Java Doc) public PyObject _doget(PyObject container)(Code)(Java Doc) public PyObject _doget(PyObject container, PyObject wherefound)(Code)(Java Doc) public boolean _doset(PyObject container, PyObject value)(Code)(Java Doc) final public PyObject _eq(PyObject o)(Code)(Java Doc) final public PyObject _floordiv(PyObject o2)(Code)(Java Doc) final public PyObject _ge(PyObject o)(Code)(Java Doc) final public PyObject _gt(PyObject o)(Code)(Java Doc) final public PyObject _in(PyObject o)(Code)(Java Doc) public PyObject _is(PyObject o)(Code)(Java Doc) public PyObject _isnot(PyObject o)(Code)(Java Doc) public PyObject _jcall(Object[] args)(Code)(Java Doc) public PyObject _jcallexc(Object[] args) throws Throwable(Code)(Java Doc) public void _jthrow(Throwable t)(Code)(Java Doc) final public PyObject _le(PyObject o)(Code)(Java Doc) final public PyObject _lshift(PyObject o2)(Code)(Java Doc) final public PyObject _lt(PyObject o)(Code)(Java Doc) final public PyObject _mod(PyObject o2)(Code)(Java Doc) final public PyObject _mul(PyObject o2)(Code)(Java Doc) final public PyObject _ne(PyObject o)(Code)(Java Doc) final public PyObject _notin(PyObject o)(Code)(Java Doc) final public PyObject _or(PyObject o2)(Code)(Java Doc) final public PyObject _pow(PyObject o2)(Code)(Java Doc) final public PyObject _rshift(PyObject o2)(Code)(Java Doc) final public PyObject _sub(PyObject o2)(Code)(Java Doc) final public PyObject _truediv(PyObject o2)(Code)(Java Doc) final protected String _unsupportedop(String op, PyObject o2)(Code)(Java Doc) final public PyObject _xor(PyObject o2)(Code)(Java Doc) protected void addKeys(PyDictionary accum, String attr)(Code)(Java Doc) public int asInt(int index) throws ConversionException(Code)(Java Doc) public long asLong(int index) throws ConversionException(Code)(Java Doc) public String asName(int index) throws ConversionException(Code)(Java Doc) public String asString(int index) throws ConversionException(Code)(Java Doc) public String asStringOrNull(int index) throws ConversionException(Code)(Java Doc) public void delDict()(Code)(Java Doc) public void delType()(Code)(Java Doc) public void dispatch__init__(PyType type, PyObject[] args, String[] keywords)(Code)(Java Doc) public boolean equals(Object ob_other)(Code)(Java Doc) public PyObject fastGetClass()(Code)(Java Doc) public PyObject fastGetDict()(Code)(Java Doc) public PyObject getDict()(Code)(Java Doc) public PyObject getDoc()(Code)(Java Doc) public PyType getType()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) protected PyObject impAttr(String name)(Code)(Java Doc) public boolean implementsDescrDelete()(Code)(Java Doc) public boolean implementsDescrSet()(Code)(Java Doc) public PyObject invoke(String name, PyObject[] args, String[] keywords)(Code)(Java Doc) public PyObject invoke(String name, PyObject[] args)(Code)(Java Doc) public PyObject invoke(String name)(Code)(Java Doc) public PyObject invoke(String name, PyObject arg1)(Code)(Java Doc) public PyObject invoke(String name, PyObject arg1, PyObject arg2)(Code)(Java Doc) public boolean isCallable()(Code)(Java Doc) public boolean isDataDescr()(Code)(Java Doc) public boolean isMappingType()(Code)(Java Doc) public boolean isNumberType()(Code)(Java Doc) public boolean isSequenceType()(Code)(Java Doc) boolean jdontdel()(Code)(Java Doc) boolean jtryset(PyObject container, PyObject value)(Code)(Java Doc) public void noAttributeError(String name)(Code)(Java Doc) final boolean object___contains__(PyObject o)(Code)(Java Doc) final void object___delattr__(String name)(Code)(Java Doc) final PyObject object___findattr__(String name)(Code)(Java Doc) final PyObject object___reduce__()(Code)(Java Doc) final void object___setattr__(String name, PyObject value)(Code)(Java Doc) final int object_hashCode()(Code)(Java Doc) final void object_init(PyObject[] args, String[] keywords)(Code)(Java Doc) final String object_toString()(Code)(Java Doc) public void readonlyAttributeError(String name)(Code)(Java Doc) protected String runsupportedopMessage(String op, PyObject o2)(Code)(Java Doc) public String safeRepr() throws PyIgnoreMethodTag(Code)(Java Doc) public void setDict(PyObject newDict)(Code)(Java Doc) public void setType(PyType type)(Code)(Java Doc) public String toString()(Code)(Java Doc) public static void typeSetup(PyObject dict, PyType.Newstyle marker)(Code)(Java Doc) protected String unsupportedopMessage(String op, PyObject o2)(Code)(Java Doc)
|
|
|