Top Description Fields Constructors Methods
org.python.modules._weakref

public Class ProxyType

extends AbstractReference
Class Inheritance
Known Direct Subclasses
org.python.modules._weakref.CallableProxyType
Annotations
@ExposedType
name:weakproxy
isBaseType:false
Imports
org.python.core.PyComplex, .PyFloat, .PyObject, .PyString, .PyType, .PyUnicode, org.python.expose.ExposedType

A weak reference proxy object.

Field Summary

Modifier and TypeField and Description
public static final PyType
Inherited from org.python.modules._weakref.AbstractReference:
callbackgref

Constructor Summary

AccessConstructor and Description
public
ProxyType(PyType subType, ReferenceBackend ref, PyObject callback)

public

Method Summary

Modifier and TypeMethod and Description
public PyObject
__abs__()

Overrides org.python.core.PyObject.__abs__.

Equivalent to the standard Python __abs__ method.

public PyObject
__add__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__add__.

Equivalent to the standard Python __add__ method.

public PyObject
__and__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__and__.

Equivalent to the standard Python __and__ method

public PyComplex
__complex__()

Overrides org.python.core.PyObject.__complex__.

Equivalent to the standard Python __complex__ method.

public boolean
__contains__(PyObject
the element to search for in this container.
o
)

Overrides org.python.core.PyObject.__contains__.

Equivalent to the standard Python __contains__ method.

public void
__delattr__(String
the name which will be removed - must be an interned string .
name
)

Overrides org.python.core.PyObject.__delattr__.

A variant of the __delattr__ method which accepts a String as the key.

public void
__delitem__(PyObject
the key to be removed from the container
key
)

Overrides org.python.core.PyObject.__delitem__.

Equivalent to the standard Python __delitem__ method.

public void
public PyObject
__div__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__div__.

Equivalent to the standard Python __div__ method

public PyObject
__divmod__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__divmod__.

Equivalent to the standard Python __divmod__ method

public PyObject
__findattr_ex__(String name)

Overrides org.python.core.PyObject.__findattr_ex__.

Attribute lookup hook.

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

Overrides org.python.core.PyObject.__finditem__.

Very similar to the standard Python __getitem__ method.

public PyFloat
__float__()

Overrides org.python.core.PyObject.__float__.

Equivalent to the standard Python __float__ method.

public PyObject
__floordiv__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__floordiv__.

Equivalent to the standard Python __floordiv__ method

public PyObject
public PyString
__hex__()

Overrides org.python.core.PyObject.__hex__.

Equivalent to the standard Python __hex__ method Should only be overridden by numeric objects that can be reasonably represented as a hexadecimal string.

public PyObject
__iadd__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__iadd__.

Equivalent to the standard Python __iadd__ method.

public PyObject
__iand__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__iand__.

Equivalent to the standard Python __iand__ method

public PyObject
__idiv__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__idiv__.

Equivalent to the standard Python __idiv__ method

public PyObject
__ifloordiv__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__ifloordiv__.

Equivalent to the standard Python __ifloordiv__ method

public PyObject
__ilshift__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__ilshift__.

Equivalent to the standard Python __ilshift__ method

public PyObject
__imod__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__imod__.

Equivalent to the standard Python __imod__ method

public PyObject
__imul__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__imul__.

Equivalent to the standard Python __imul__ method.

public PyObject
__index__()

Overrides org.python.core.PyObject.__index__.

Equivalent to the standard Python __index__ method.

public PyObject
__int__()

Overrides org.python.core.PyObject.__int__.

Equivalent to the standard Python __int__ method.

public PyObject
__invert__()

Overrides org.python.core.PyObject.__invert__.

Equivalent to the standard Python __invert__ method.

public PyObject
__ior__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__ior__.

Equivalent to the standard Python __ior__ method

public PyObject
__ipow__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__ipow__.

Equivalent to the standard Python __ipow__ method

public PyObject
__irshift__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__irshift__.

Equivalent to the standard Python __irshift__ method

public PyObject
__isub__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__isub__.

Equivalent to the standard Python __isub__ 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
__ixor__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__ixor__.

Equivalent to the standard Python __ixor__ method

public int
__len__()

Overrides org.python.core.PyObject.__len__.

Equivalent to the standard Python __len__ method.

public PyObject
__long__()

Overrides org.python.core.PyObject.__long__.

Equivalent to the standard Python __long__ method.

public PyObject
__lshift__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__lshift__.

Equivalent to the standard Python __lshift__ method

public PyObject
__mod__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__mod__.

Equivalent to the standard Python __mod__ method

public PyObject
__mul__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__mul__.

Equivalent to the standard Python __mul__ method.

public PyObject
__neg__()

Overrides org.python.core.PyObject.__neg__.

Equivalent to the standard Python __neg__ method.

public boolean
__nonzero__()

Overrides org.python.core.PyObject.__nonzero__.

Equivalent to the standard Python __nonzero__ method.

public PyString
__oct__()

Overrides org.python.core.PyObject.__oct__.

Equivalent to the standard Python __oct__ method.

public PyObject
__or__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__or__.

Equivalent to the standard Python __or__ method

public PyObject
__pos__()

Overrides org.python.core.PyObject.__pos__.

Equivalent to the standard Python __pos__ method.

public PyObject
__pow__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__pow__.

Equivalent to the standard Python __pow__ method

public PyObject
__radd__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__radd__.

Equivalent to the standard Python __radd__ method.

public PyObject
__rand__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rand__.

Equivalent to the standard Python __rand__ method

public PyObject
__rdiv__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rdiv__.

Equivalent to the standard Python __rdiv__ method

public PyObject
__rdivmod__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rdivmod__.

Equivalent to the standard Python __rdivmod__ method

public PyObject
__rlshift__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rlshift__.

Equivalent to the standard Python __rlshift__ method

public PyObject
__rmod__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rmod__.

Equivalent to the standard Python __rmod__ method

public PyObject
__rmul__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rmul__.

Equivalent to the standard Python __rmul__ method.

public PyObject
__ror__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__ror__.

Equivalent to the standard Python __ror__ method

public PyObject
__rpow__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rpow__.

Equivalent to the standard Python __rpow__ method

public PyObject
__rrshift__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rrshift__.

Equivalent to the standard Python __rrshift__ method

public PyObject
__rshift__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__rshift__.

Equivalent to the standard Python __rshift__ method

public PyObject
__rsub__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rsub__.

Equivalent to the standard Python __rsub__ method

public PyObject
__rxor__(PyObject
the object to perform this binary operation with (the left-hand operand).
o
)

Overrides org.python.core.PyObject.__rxor__.

Equivalent to the standard Python __rxor__ method

public void
__setattr__(String
the name whose value will be set - must be an interned string .
name
,
PyObject
the value to set this name to
value
)

Overrides org.python.core.PyObject.__setattr__.

A variant of the __setattr__ method which accepts a String as the key.

public void
__setitem__(PyObject
the key whose value will be set
key
,
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 PyString
__str__()

Overrides org.python.core.PyObject.__str__.

Equivalent to the standard Python __str__ method.

public PyObject
__sub__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__sub__.

Equivalent to the standard Python __sub__ method

public PyUnicode
public PyObject
__xor__(PyObject
the object to perform this binary operation with (the right-hand operand).
o
)

Overrides org.python.core.PyObject.__xor__.

Equivalent to the standard Python __xor__ method

Inherited from org.python.modules._weakref.AbstractReference:
__eq____ne__callequalsgethasCallbackhashCodepyrefersDirectlyTotraverse

Field Detail

TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyObject.TYPE.

Constructor Detail

ProxyTypeback to summary
public ProxyType(PyType subType, ReferenceBackend ref, PyObject callback)
ProxyTypeback to summary
public ProxyType(ReferenceBackend ref, PyObject callback)

Method Detail

__abs__back to summary
public PyObject __abs__()

Overrides org.python.core.PyObject.__abs__.

Doc from org.python.core.PyObject.__abs__.

Equivalent to the standard Python __abs__ method.

Returns:PyObject

abs(this).

__add__back to summary
public PyObject __add__(PyObject o)

Overrides org.python.core.PyObject.__add__.

Doc from org.python.core.PyObject.__add__.

Equivalent to the standard Python __add__ method.

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the add, or null if this operation is not defined.

__and__back to summary
public PyObject __and__(PyObject o)

Overrides org.python.core.PyObject.__and__.

Doc from org.python.core.PyObject.__and__.

Equivalent to the standard Python __and__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the and, or null if this operation is not defined

__complex__back to summary
public PyComplex __complex__()

Overrides org.python.core.PyObject.__complex__.

Doc from org.python.core.PyObject.__complex__.

Equivalent to the standard Python __complex__ method. Should only be overridden by numeric objects that can be reasonably coerced into a python complex number.

Returns:PyComplex

a complex number corresponding to the value of this object.

__contains__back to summary
public boolean __contains__(PyObject o)

Overrides org.python.core.PyObject.__contains__.

Doc from org.python.core.PyObject.__contains__.

Equivalent to the standard Python __contains__ method.

Parameters
o:PyObject

the element to search for in this container.

Returns:boolean

the result of the search.

__delattr__back to summary
public void __delattr__(String name)

Overrides org.python.core.PyObject.__delattr__.

Doc from org.python.core.PyObject.__delattr__.

A variant of the __delattr__ method which accepts a String as the key. This String must be interned. By default, this will call __delattr__(PyString name) with the appropriate args. The only reason to override this method is for performance.

Parameters
name:String

the name which will be removed - must be an interned string .

__delitem__back to summary
public void __delitem__(PyObject key)

Overrides org.python.core.PyObject.__delitem__.

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

Equivalent to the standard Python __delitem__ method.

Parameters
key:PyObject

the key to be removed from the container

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

Overrides org.python.core.PyObject.__delslice__.

__div__back to summary
public PyObject __div__(PyObject o)

Overrides org.python.core.PyObject.__div__.

Doc from org.python.core.PyObject.__div__.

Equivalent to the standard Python __div__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the div, or null if this operation is not defined

__divmod__back to summary
public PyObject __divmod__(PyObject o)

Overrides org.python.core.PyObject.__divmod__.

Doc from org.python.core.PyObject.__divmod__.

Equivalent to the standard Python __divmod__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the divmod, or null if this operation is not defined

__findattr_ex__back to summary
public PyObject __findattr_ex__(String name)

Overrides org.python.core.PyObject.__findattr_ex__.

Doc from org.python.core.PyObject.__findattr_ex__.

Attribute lookup hook. If the attribute is not found, null may be returned or a Py.AttributeError can be thrown, whatever is more correct, efficient and/or convenient for the implementing class. Client code should use __getattr__(String) or __findattr__(String). Both methods have a clear policy for failed lookups.

Returns:PyObject

The looked up value. May return null if the attribute is not found

__finditem__back to summary
public PyObject __finditem__(PyObject key)

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
key:PyObject

the key to lookup in this container

Returns:PyObject

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

__float__back to summary
public PyFloat __float__()

Overrides org.python.core.PyObject.__float__.

Doc from org.python.core.PyObject.__float__.

Equivalent to the standard Python __float__ method. Should only be overridden by numeric objects that can be reasonably coerced into a python float.

Returns:PyFloat

a float corresponding to the value of this object.

__floordiv__back to summary
public PyObject __floordiv__(PyObject o)

Overrides org.python.core.PyObject.__floordiv__.

Doc from org.python.core.PyObject.__floordiv__.

Equivalent to the standard Python __floordiv__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the floordiv, or null if this operation is not defined

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

Overrides org.python.core.PyObject.__getslice__.

__hex__back to summary
public PyString __hex__()

Overrides org.python.core.PyObject.__hex__.

Doc from org.python.core.PyObject.__hex__.

Equivalent to the standard Python __hex__ method Should only be overridden by numeric objects that can be reasonably represented as a hexadecimal string.

Returns:PyString

a string representing this object as a hexadecimal number.

__iadd__back to summary
public PyObject __iadd__(PyObject o)

Overrides org.python.core.PyObject.__iadd__.

Doc from org.python.core.PyObject.__iadd__.

Equivalent to the standard Python __iadd__ method.

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the iadd, or null if this operation is not defined

__iand__back to summary
public PyObject __iand__(PyObject o)

Overrides org.python.core.PyObject.__iand__.

Doc from org.python.core.PyObject.__iand__.

Equivalent to the standard Python __iand__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the iand, or null if this operation is not defined

__idiv__back to summary
public PyObject __idiv__(PyObject o)

Overrides org.python.core.PyObject.__idiv__.

Doc from org.python.core.PyObject.__idiv__.

Equivalent to the standard Python __idiv__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the idiv, or null if this operation is not defined

__ifloordiv__back to summary
public PyObject __ifloordiv__(PyObject o)

Overrides org.python.core.PyObject.__ifloordiv__.

Doc from org.python.core.PyObject.__ifloordiv__.

Equivalent to the standard Python __ifloordiv__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the ifloordiv, or null if this operation is not defined

__ilshift__back to summary
public PyObject __ilshift__(PyObject o)

Overrides org.python.core.PyObject.__ilshift__.

Doc from org.python.core.PyObject.__ilshift__.

Equivalent to the standard Python __ilshift__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the ilshift, or null if this operation is not defined

__imod__back to summary
public PyObject __imod__(PyObject o)

Overrides org.python.core.PyObject.__imod__.

Doc from org.python.core.PyObject.__imod__.

Equivalent to the standard Python __imod__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the imod, or null if this operation is not defined

__imul__back to summary
public PyObject __imul__(PyObject o)

Overrides org.python.core.PyObject.__imul__.

Doc from org.python.core.PyObject.__imul__.

Equivalent to the standard Python __imul__ method.

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the imul, or null if this operation is not defined.

__index__back to summary
public PyObject __index__()

Overrides org.python.core.PyObject.__index__.

Doc from org.python.core.PyObject.__index__.

Equivalent to the standard Python __index__ method.

Returns:PyObject

a PyInteger or PyLong

__int__back to summary
public PyObject __int__()

Overrides org.python.core.PyObject.__int__.

Doc from org.python.core.PyObject.__int__.

Equivalent to the standard Python __int__ method. Should only be overridden by numeric objects that can be reasonably coerced into an integer.

Returns:PyObject

an integer corresponding to the value of this object.

__invert__back to summary
public PyObject __invert__()

Overrides org.python.core.PyObject.__invert__.

Doc from org.python.core.PyObject.__invert__.

Equivalent to the standard Python __invert__ method.

Returns:PyObject

~this.

__ior__back to summary
public PyObject __ior__(PyObject o)

Overrides org.python.core.PyObject.__ior__.

Doc from org.python.core.PyObject.__ior__.

Equivalent to the standard Python __ior__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the ior, or null if this operation is not defined

__ipow__back to summary
public PyObject __ipow__(PyObject o)

Overrides org.python.core.PyObject.__ipow__.

Doc from org.python.core.PyObject.__ipow__.

Equivalent to the standard Python __ipow__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the ipow, or null if this operation is not defined

__irshift__back to summary
public PyObject __irshift__(PyObject o)

Overrides org.python.core.PyObject.__irshift__.

Doc from org.python.core.PyObject.__irshift__.

Equivalent to the standard Python __irshift__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the irshift, or null if this operation is not defined

__isub__back to summary
public PyObject __isub__(PyObject o)

Overrides org.python.core.PyObject.__isub__.

Doc from org.python.core.PyObject.__isub__.

Equivalent to the standard Python __isub__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the isub, or null if this operation is not defined

__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
}
__ixor__back to summary
public PyObject __ixor__(PyObject o)

Overrides org.python.core.PyObject.__ixor__.

Doc from org.python.core.PyObject.__ixor__.

Equivalent to the standard Python __ixor__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the ixor, or null if this operation is not defined

__len__back to summary
public int __len__()

Overrides org.python.core.PyObject.__len__.

Doc from org.python.core.PyObject.__len__.

Equivalent to the standard Python __len__ method. Part of the mapping discipline.

Returns:int

the length of the object

__long__back to summary
public PyObject __long__()

Overrides org.python.core.PyObject.__long__.

Doc from org.python.core.PyObject.__long__.

Equivalent to the standard Python __long__ method. Should only be overridden by numeric objects that can be reasonably coerced into a python long.

Returns:PyObject

a PyLong or PyInteger corresponding to the value of this object.

__lshift__back to summary
public PyObject __lshift__(PyObject o)

Overrides org.python.core.PyObject.__lshift__.

Doc from org.python.core.PyObject.__lshift__.

Equivalent to the standard Python __lshift__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the lshift, or null if this operation is not defined

__mod__back to summary
public PyObject __mod__(PyObject o)

Overrides org.python.core.PyObject.__mod__.

Doc from org.python.core.PyObject.__mod__.

Equivalent to the standard Python __mod__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the mod, or null if this operation is not defined

__mul__back to summary
public PyObject __mul__(PyObject o)

Overrides org.python.core.PyObject.__mul__.

Doc from org.python.core.PyObject.__mul__.

Equivalent to the standard Python __mul__ method.

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the mul, or null if this operation is not defined

__neg__back to summary
public PyObject __neg__()

Overrides org.python.core.PyObject.__neg__.

Doc from org.python.core.PyObject.__neg__.

Equivalent to the standard Python __neg__ method.

Returns:PyObject

-this.

__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.

__oct__back to summary
public PyString __oct__()

Overrides org.python.core.PyObject.__oct__.

Doc from org.python.core.PyObject.__oct__.

Equivalent to the standard Python __oct__ method. Should only be overridden by numeric objects that can be reasonably represented as an octal string.

Returns:PyString

a string representing this object as an octal number.

__or__back to summary
public PyObject __or__(PyObject o)

Overrides org.python.core.PyObject.__or__.

Doc from org.python.core.PyObject.__or__.

Equivalent to the standard Python __or__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the or, or null if this operation is not defined

__pos__back to summary
public PyObject __pos__()

Overrides org.python.core.PyObject.__pos__.

Doc from org.python.core.PyObject.__pos__.

Equivalent to the standard Python __pos__ method.

Returns:PyObject

+this.

__pow__back to summary
public PyObject __pow__(PyObject o)

Overrides org.python.core.PyObject.__pow__.

Doc from org.python.core.PyObject.__pow__.

Equivalent to the standard Python __pow__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the pow, or null if this operation is not defined

__radd__back to summary
public PyObject __radd__(PyObject o)

Overrides org.python.core.PyObject.__radd__.

Doc from org.python.core.PyObject.__radd__.

Equivalent to the standard Python __radd__ method.

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the add, or null if this operation is not defined.

__rand__back to summary
public PyObject __rand__(PyObject o)

Overrides org.python.core.PyObject.__rand__.

Doc from org.python.core.PyObject.__rand__.

Equivalent to the standard Python __rand__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the and, or null if this operation is not defined.

__rdiv__back to summary
public PyObject __rdiv__(PyObject o)

Overrides org.python.core.PyObject.__rdiv__.

Doc from org.python.core.PyObject.__rdiv__.

Equivalent to the standard Python __rdiv__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the div, or null if this operation is not defined.

__rdivmod__back to summary
public PyObject __rdivmod__(PyObject o)

Overrides org.python.core.PyObject.__rdivmod__.

Doc from org.python.core.PyObject.__rdivmod__.

Equivalent to the standard Python __rdivmod__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the divmod, or null if this operation is not defined.

__rlshift__back to summary
public PyObject __rlshift__(PyObject o)

Overrides org.python.core.PyObject.__rlshift__.

Doc from org.python.core.PyObject.__rlshift__.

Equivalent to the standard Python __rlshift__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the lshift, or null if this operation is not defined.

__rmod__back to summary
public PyObject __rmod__(PyObject o)

Overrides org.python.core.PyObject.__rmod__.

Doc from org.python.core.PyObject.__rmod__.

Equivalent to the standard Python __rmod__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the mod, or null if this operation is not defined.

__rmul__back to summary
public PyObject __rmul__(PyObject o)

Overrides org.python.core.PyObject.__rmul__.

Doc from org.python.core.PyObject.__rmul__.

Equivalent to the standard Python __rmul__ method.

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the mul, or null if this operation is not defined.

__ror__back to summary
public PyObject __ror__(PyObject o)

Overrides org.python.core.PyObject.__ror__.

Doc from org.python.core.PyObject.__ror__.

Equivalent to the standard Python __ror__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the or, or null if this operation is not defined.

__rpow__back to summary
public PyObject __rpow__(PyObject o)

Overrides org.python.core.PyObject.__rpow__.

Doc from org.python.core.PyObject.__rpow__.

Equivalent to the standard Python __rpow__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the pow, or null if this operation is not defined.

__rrshift__back to summary
public PyObject __rrshift__(PyObject o)

Overrides org.python.core.PyObject.__rrshift__.

Doc from org.python.core.PyObject.__rrshift__.

Equivalent to the standard Python __rrshift__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the rshift, or null if this operation is not defined.

__rshift__back to summary
public PyObject __rshift__(PyObject o)

Overrides org.python.core.PyObject.__rshift__.

Doc from org.python.core.PyObject.__rshift__.

Equivalent to the standard Python __rshift__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the rshift, or null if this operation is not defined

__rsub__back to summary
public PyObject __rsub__(PyObject o)

Overrides org.python.core.PyObject.__rsub__.

Doc from org.python.core.PyObject.__rsub__.

Equivalent to the standard Python __rsub__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the sub, or null if this operation is not defined.

__rxor__back to summary
public PyObject __rxor__(PyObject o)

Overrides org.python.core.PyObject.__rxor__.

Doc from org.python.core.PyObject.__rxor__.

Equivalent to the standard Python __rxor__ method

Parameters
o:PyObject

the object to perform this binary operation with (the left-hand operand).

Returns:PyObject

the result of the xor, or null if this operation is not defined.

__setattr__back to summary
public void __setattr__(String name, PyObject value)

Overrides org.python.core.PyObject.__setattr__.

Doc from org.python.core.PyObject.__setattr__.

A variant of the __setattr__ method which accepts a String as the key. This String must be interned.

Parameters
name:String

the name whose value will be set - must be an interned string .

value:PyObject

the value to set this name to

__setitem__back to summary
public void __setitem__(PyObject key, PyObject value)

Overrides org.python.core.PyObject.__setitem__.

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

Equivalent to the standard Python __setitem__ method.

Parameters
key:PyObject

the key whose value will be set

value:PyObject

the value to set this key to

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

Overrides org.python.core.PyObject.__setslice__.

__str__back to summary
public PyString __str__()

Overrides org.python.core.PyObject.__str__.

Doc from org.python.core.PyObject.__str__.

Equivalent to the standard Python __str__ method. The default implementation (in PyObject) calls __repr__(), making it unnecessary to override __str__ in sub-classes of PyObject where both forms are the same. A common choice is to provide the same implementation to __str__ and toString, for consistency in the printed form of objects between Python and Java.

__sub__back to summary
public PyObject __sub__(PyObject o)

Overrides org.python.core.PyObject.__sub__.

Doc from org.python.core.PyObject.__sub__.

Equivalent to the standard Python __sub__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the sub, or null if this operation is not defined

__unicode__back to summary
public PyUnicode __unicode__()

Overrides org.python.core.PyObject.__unicode__.

__xor__back to summary
public PyObject __xor__(PyObject o)

Overrides org.python.core.PyObject.__xor__.

Doc from org.python.core.PyObject.__xor__.

Equivalent to the standard Python __xor__ method

Parameters
o:PyObject

the object to perform this binary operation with (the right-hand operand).

Returns:PyObject

the result of the xor, or null if this operation is not defined