sum function

Ian Kelly ian.g.kelly at gmail.com
Thu Oct 4 17:05:48 EDT 2012


On Thu, Oct 4, 2012 at 3:04 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> scanner = client.scannerOpenWithStop("tab", "10", "1000", ["cf:col1"])
> next_r = itertools.partial(client.scannerGet, scanner)
> total = sum(float(col.value) for r in iter(next_r, None) for col in
> r.itervalues())

That should be "functools" above, not "itertools". :-P



More information about the Python-list mailing list