| Modifier and Type | Field and Description |
|---|---|
| pack-priv PyObject | dict
The dict proxied to. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | __cmp__(PyObject
the object to compare this with. other)Overrides org. Equivalent to the standard Python __cmp__ method. |
| public PyObject | __finditem__(PyObject
the key to lookup in this container key)Overrides org. Very similar to the standard Python __getitem__ method. |
| public PyObject | __iter__()
Overrides org. Return an iterator that is used to iterate the element of this sequence. |
| public int | __len__()
Overrides org. Equivalent to the standard Python __len__ method. |
| public PyString | __str__()
Overrides org. Equivalent to the standard Python __str__ method. |
| public int | |
| public boolean | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public boolean | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public PyObject | |
| public boolean | |
| public boolean | |
| public boolean | refersDirectlyTo(PyObject ob)
Implements org. Optional operation. |
| public int | traverse(Visitproc visit, Object arg)
Implements org. Traverses all directly contained |
| dict | back to summary |
|---|---|
| pack-priv PyObject dict The dict proxied to. | |
| PyDictProxy | back to summary |
|---|---|
| public PyDictProxy(PyObject dict) | |
| __cmp__ | back to summary |
|---|---|
| public int __cmp__(PyObject other) Overrides org. Doc from org. Equivalent to the standard Python __cmp__ method. | |
| __finditem__ | back to summary |
|---|---|
| public PyObject __finditem__(PyObject key) Overrides org. Doc from org. 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. | |
| __iter__ | back to summary |
|---|---|
| public PyObject __iter__() Overrides org. Doc from org. 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
}
| |
| __len__ | back to summary |
|---|---|
| public int __len__() Overrides org. Doc from org. Equivalent to the standard Python __len__ method. Part of the mapping discipline.
| |
| __str__ | back to summary |
|---|---|
| public PyString __str__() Overrides org. Doc from org. Equivalent to the standard Python __str__ method. The default implementation (in
| |
| dictproxy___cmp__ | back to summary |
|---|---|
public int dictproxy___cmp__(PyObject other)
| |
| dictproxy___contains__ | back to summary |
|---|---|
public boolean dictproxy___contains__(PyObject value)
| |
| dictproxy___eq__ | back to summary |
|---|---|
public PyObject dictproxy___eq__(PyObject other)
| |
| dictproxy___ge__ | back to summary |
|---|---|
public PyObject dictproxy___ge__(PyObject other)
| |
| dictproxy___getitem__ | back to summary |
|---|---|
public PyObject dictproxy___getitem__(PyObject key)
| |
| dictproxy___gt__ | back to summary |
|---|---|
public PyObject dictproxy___gt__(PyObject other)
| |
| dictproxy___le__ | back to summary |
|---|---|
public PyObject dictproxy___le__(PyObject other)
| |
| dictproxy___lt__ | back to summary |
|---|---|
public PyObject dictproxy___lt__(PyObject other)
| |
| dictproxy___ne__ | back to summary |
|---|---|
public PyObject dictproxy___ne__(PyObject other)
| |
| dictproxy_copy | back to summary |
|---|---|
public PyObject dictproxy_copy()
| |
| dictproxy_get | back to summary |
|---|---|
public PyObject dictproxy_get(PyObject key, PyObject default_object)
| |
| dictproxy_has_key | back to summary |
|---|---|
public boolean dictproxy_has_key(PyObject key)
| |
| dictproxy_items | back to summary |
|---|---|
public PyObject dictproxy_items()
| |
| dictproxy_iteritems | back to summary |
|---|---|
public PyObject dictproxy_iteritems()
| |
| dictproxy_iterkeys | back to summary |
|---|---|
public PyObject dictproxy_iterkeys()
| |
| dictproxy_itervalues | back to summary |
|---|---|
public PyObject dictproxy_itervalues()
| |
| dictproxy_keys | back to summary |
|---|---|
public PyObject dictproxy_keys()
| |
| dictproxy_values | back to summary |
|---|---|
public PyObject dictproxy_values()
| |
| isMappingType | back to summary |
|---|---|
| public boolean isMappingType() Overrides org.
| |
| isSequenceType | back to summary |
|---|---|
| public boolean isSequenceType() Overrides org.
| |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Implements org. Doc from org. Traverses all directly contained
| |