Go to Google Groups Home    comp.lang.python
Re: ten small Python programs

Wildemar Wildenburger <wilde...@freakmail.de>

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