GNU Info

Info Node: (python2.1-ref.info)Emulating callable objects

(python2.1-ref.info)Emulating callable objects


Next: Emulating sequence and mapping types Prev: Customizing attribute access Up: Special method names
Enter node , (file) or (file)node

Emulating callable objects
--------------------------

`__call__(self[, args...])'
     Called when the instance is "called" as a function; if this method
     is defined, `X(arg1, arg2, ...)' is a shorthand for
     `X.__call__(arg1, arg2, ...)'.


automatically generated by info2www version 1.2.2.9