accumulators

Paul Rubin http
Sat Jun 12 15:52:07 EDT 2004


Peter Otten <__peter__ at web.de> writes:
> Should be
> 
>     a = accum(3)    # create accumulator holding 3
>     print a(2)  # prints "5"
>     print a(3)  # prints "8"
>     print a(1)  # prints "9"

Oops, yes.



More information about the Python-list mailing list