Lines Matching refs:Called
1198 Called to create a new instance of class *cls*. :meth:`__new__` is a static
1227 Called after the instance has been created (by :meth:`__new__`), but before
1246 Called when the instance is about to be destroyed. This is also called a
1302 Called by the :func:`repr` built-in function and by string conversions (reverse
1328 Called by the :func:`str` built-in function and by the :keyword:`print`
1385 Called by comparison operations if rich comparison (see above) is not
1408 Called by built-in function :func:`hash` and for operations on members of
1457 Called to implement truth value testing and the built-in operation ``bool()``;
1469 Called to implement :func:`unicode` built-in; should return a Unicode object.
1485 Called when an attribute lookup has not found the attribute in the usual places
1505 Called when an attribute assignment is attempted. This is called instead of the
1536 Called unconditionally to implement attribute accesses for instances of the
1567 Called to get the attribute of the owner class (class attribute access) or of an
1577 Called to set the attribute on an instance *instance* of the owner class to a
1583 Called to delete the attribute on an instance *instance* of the owner class.
1842 Called when the instance is "called" as a function; if this method is defined,
1889 Called to implement the built-in function :func:`len`. Should return the length
1907 Called to implement evaluation of ``self[key]``. For sequence types, the
1924 Called by :class:`dict`\ .\ :meth:`__getitem__` to implement ``self[key]`` for dict subclasses
1930 Called to implement assignment to ``self[key]``. Same note as for
1939 Called to implement deletion of ``self[key]``. Same note as for
1959 Called (if present) by the :func:`reversed` built-in to implement
1979 Called to implement membership test operators. Should return true if *item*
2007 Called to implement evaluation of ``self[i:j]``. The returned object should
2020 Called to implement assignment to ``self[i:j]``. Same notes for *i* and *j* as
2030 Called to implement deletion of ``self[i:j]``. Same notes for *i* and *j* as for
2208 Called to implement the unary arithmetic operations (``-``, ``+``, :func:`abs`
2223 Called to implement the built-in functions :func:`complex`, :func:`int`,
2234 Called to implement the built-in functions :func:`oct` and :func:`hex`. Should
2240 Called to implement :func:`operator.index`. Also called whenever Python needs
2248 Called to implement "mixed-mode" numeric arithmetic. Should either return a