parrotcode: Python Object | |
Contents | Dynamic PMCs |
classes/pyobject.pmc - Python Object
Abstract base class for Python objects.
void destroy()
PMC* "__abs__"(PMC *self)
self
.PMC* "__add__"(PMC *self, PMC *value)
*value
to self
and returns the result.PMC* "__and__"(PMC *self, PMC *value)
AND
of self
and *value
.PMC* "__cmp__"(PMC *self, PMC *value)
self
with *value
.PMC* "__div__"(PMC *self, PMC *value)
self
by *value
and returns the result.PMC* "__divmod__"(PMC *self, PMC *value)
self
by *value
and returns the remainder.PMC* "__float__"(PMC *self)
self
.PMC* "__floordiv__"(PMC *self, PMC *value)
self
by *value
and returns the result.PMC* "__hash__"(PMC *self)
self
.PMC* "__int__"(PMC *self)
self
.void "__invert__"(PMC *self, PMC *value)
PMC* "__lshift__"(PMC *self, PMC *value)
<<<<
>>) of the integer by *value
and returns the result.PMC* "__mod__"(PMC *self, PMC *value)
self
with *value
.PMC* "__mul__"(PMC *self, PMC *value)
self
multiplied by *value
.void "__neg__"(PMC *self, PMC *value)
void "__nonzero__"(PMC *self, PMC *value)
PMC* "__or__"(PMC *self, PMC *value)
OR
of self
and *value
.PMC* "__pow__"(PMC *self, PMC *value)
PMC* "__radd__"(PMC *self, PMC *value)
*value
to self
and returns the result.PMC* "__rand__"(PMC *self, PMC *value)
AND
of *value
and self
.PMC* "__rdiv__"(PMC *self, PMC *value)
*value
by self
and returns the result.PMC* "__repr__"(PMC *self, PMC *value)
PMC* "__rfloordiv__"(PMC *self, PMC *value)
*value
by self
and returns the result.PMC* "__rlshift__"(PMC *self, PMC *value)
<<<<
>>) of *value
by the integer and returns the result.PMC* "__rmod__"(PMC *self, PMC *value)
*value
with self
.PMC* "__rmul__"(PMC *self, PMC *value)
*value
multiplied by self
.PMC* "__ror__"(PMC *self, PMC *value)
OR
of *value
and self
.PMC* "__rpow__"(PMC *self, PMC *value)
PMC* "__rrshift__"(PMC *self, PMC *value)
<<
>>>>) of *value
by the integer and returns the result.PMC* "__rshift__"(PMC *self, PMC *value)
<<
>>>>) of the integer by *value
and returns the result.PMC* "__rsub__"(PMC *self, PMC *value)
self
from *value
and returns the result.PMC* "__rxor__"(PMC *self, PMC *value)
XOR
of *value
and self
.void "__str__"(PMC *self, PMC *value)
PMC* "__sub__"(PMC *self, PMC *value)
*value
from self
and returns the result.PMC* "__xor__"(PMC *self, PMC *value)
XOR
of self
and *value
.PMC *find_method(STRING *method_name)
*method_name
and returns it.STRING *get_repr()
PMC *logical_and(PMC *value, PMC *dest)
*dest
the result of the logical AND
of the scalar and *value
.PMC logical_not(PMC *dest)
void i_logical_not()
*dest
the result of the logical not of the scalar.PMC *logical_or(PMC *value, PMC *dest)
*dest
the result of the logical OR
of the scalar and *value
.void morph(INTVAL type)
void set_integer_native (INTVAL value)
void set_number_native(FLOATVAL value)
void set_string_native(STRING *value)
void set_pmc(PMC *value)
*value
,
calling the appropriate set_*
method according to the type of *value
.
|