Steve Howell wrote:
>     # def defines a method in Python
>     def say_hello(name):
>         print 'hello', name
>     say_hello('Jack')
>     say_hello('Jill')
>   
Doesn't def define methods *xor* functions, depending on the context? 
And in this example, say_hello (*yuck*, underscores ...) is certainly a 
function. Or is it that functions are considered "module-methods"?

W
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to