usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Sat Nov 3 12:23:31 CET 2007
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. In contrast, the thing that is often
generally referred to as "method" is often just some function of
some object. This comes from other languages, I think, where it's
not that liberal with functions.
BOFH excuse #405:
Sysadmins unavailable because they are in a meeting talking about
why they are unavailable so much.
More information about the Python-list