python newbie
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Sun Nov 4 17:14:45 CET 2007
Bjoern Schliessmann a écrit :
> Hendrik van Rooyen wrote:
>
>
>>So what's the difference ? Why can't bar be called a method
>>of foo, or is it merely a convention that classes have
>>methods and modules have functions?
>
>
> In depends on which terminology you use. As Steven told, Python
> methods are special functions.
Nope. They are callable objects wrapping a function, a class and
(usually) an instance of the class.
More information about the Python-list
mailing list