org.python.core
public class PyTuple extends PySequenceList implements ClassDictInit
Field Summary | |
---|---|
static Class | exposed_base |
static String | exposed_name |
Constructor Summary | |
---|---|
PyTuple() | |
PyTuple(PyObject[] elements) | |
PyTuple(PyType subtype, PyObject[] elements) |
Method Summary | |
---|---|
boolean | add(Object o) |
void | add(int index, Object element) |
boolean | addAll(Collection coll) |
boolean | addAll(int index, Collection c) |
static void | classDictInit(PyObject dict) Internal use only. |
void | clear() |
int | hashCode() |
Iterator | iterator() |
ListIterator | listIterator() |
ListIterator | listIterator(int index) |
boolean | remove(Object o) |
Object | remove(int index) |
boolean | removeAll(Collection coll) |
boolean | retainAll(Collection coll) |
String | safeRepr() |
Object | set(int index, Object element) |
List | subList(int fromIndex, int toIndex) |
String | toString() |
static void | typeSetup(PyObject dict, PyType.Newstyle marker) |
PyObject | __add__(PyObject generic_other) |
PyTuple | __getnewargs__() |
int | __len__() |
PyObject | __reduce__()
Used for pickling.
|
Returns: a tuple of (class, tuple)