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. Regards, Björn -- BOFH excuse #405: Sysadmins unavailable because they are in a meeting talking about why they are unavailable so much. -- http://mail.python.org/mailman/listinfo/python-list