My fight with classes :)
fc14301589 at icqmail.com
Fri Jun 13 06:34:54 CEST 2008
On 17:47, giovedì 12 giugno 2008 Bruno Desthuilliers wrote:
>>> For multiple functions, use classes.
> Well... Closures are poor men's objects, or so they say (or is that the
> other way round ?-).
Well, I'd like to know what could be the reason to design a single-call class
instead of a similar function.
> def make_person(name, age):
> state = dict(name=name, age=age)
> def set_name(new_name=None):
I'm going to get a deeper thinking about a function's function :)
Mailsweeper Home : http://it.geocities.com/call_me_not_now/index.html
More information about the Python-list