| |
comp.lang.python |
--- Wildemar Wildenburger <wilde...@freakmail.de> > Doesn't def define methods *xor* functions, http://wiki.python.org/moin/SimplePrograms I changed the method name to "greet" and removed the ___________________________________________________________________________ _________Luggage? GPS? Comic books?
wrote:
> > # def defines a method in Python
> > def say_hello(name):
> > print 'hello', name
> > say_hello('Jack')
> > say_hello('Jill')
> 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"?
so controversial. But please see the new version
here:
comment, as hopefully the intent of the program will
be pretty obvious to anyone that reads it.
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz