Any Python object. That is, an instance of object.
8.8. PyObject
Python object. The top (⊤) element of the set of typings.
Returns the type of the object self.
This is equivalent to type(self) in Python.
Computes a string representation of the object self.
This is equivalent to the Python expression repr(self).
8.8.1. Conversions
Computes a string representation of the object self.
This is equivalent to the Python expression str(self).
Computes a bytes representation of the object self.
This is similar to the Python expression bytes(self), except,
for integers, it raises a PyTypeError instead of returning
a zero-initialized bytes objects.
Returns self converted to a float object.
This is equivalent to the Python expression float(self).
Returns self converted to an integer object.
This is equivalent to the Python expression int(self).
Returns self interpreted as exactly an int (not one of its subclasses).
This is equivalent to the Python expression operator.index(self).
8.8.2. Attributes
Returns the attribute name on self.
This is equivalent to the Python expression getattr(self, name).
Returns the attribute name on self.
This is equivalent to the Python expression getattr(self, name).
Sets the attribute name on self to val.
This is equivalent to the Python expression setattr(self, name, val).
Sets the attribute name on self to val.
This is equivalent to the Python expression setattr(self, name, val).
8.8.3. Function Calls
Calls self with no arguments.
This is equivalent to the Python expression self().
Calls self with a single argument, arg.
This is equivalent to the Python expression self(arg).