On Tue, 17 Feb 2009 09:48:30 +0100, Luca Bacchi wrote:
> Esiste un protocollo per l'operatore 'sum'?
No, cosa fare รจ spiegato nella sua documentazione (forse sono le
implicazioni a non essere chiare):
sum(sequence, start=0) -> value
Returns the sum of a sequence of numbers (NOT stri
On Tue, Feb 17, 2009 at 9:48 AM, Luca Bacchi 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 underst