typesmethods





2.1.7.4 Methods

















Python Library Reference




Previous: 2.1.7.3 Functions
Up: 2.1.7 Other Built-in Types
Next: 2.1.7.5 Code Objects





2.1.7.4 Methods




Methods are functions that are called using the attribute notation.
There are two flavors: built-in methods (such as append() on
lists) and class instance methods. Built-in methods are described
with the types that support them.


The implementation adds two special read-only attributes to class
instance methods: m.im_self is the object on which the
method operates, and m.im_func is the function
implementing the method. Calling m(arg-1,
arg-2, ..., arg-n) is completely equivalent to
calling m.im_func(m.im_self, arg-1,
arg-2, ..., arg-n).


See the Python Reference Manual for more
information.








Python Library Reference




Previous: 2.1.7.3 Functions
Up: 2.1.7 Other Built-in Types
Next: 2.1.7.5 Code Objects



See About this document... for information on suggesting changes.





Wyszukiwarka

Podobne podstrony:
typesmodules
typesmapping

więcej podobnych podstron