On Tue, Feb 17, 2009 at 9:48 AM, Luca Bacchi <bacch...@gmail.com> wrote:
> So che potrei fare diversamente... Ma vorrei adottare questa soluzione. :-)

import operator
reduce(operator.add, [A(1), A(2)])

:-)

-- 
Lawrence, http://oluyede.org - http://twitter.com/lawrenceoluyede
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a