A Monday 17 January 2011 13:02:31 Francesc Alted escrigué: > >>> s = 0 > >>> for r in carr: s += r.sum() > > ....: > >>> s > > 1000000.0
or, in just one line: >>> sum(r.sum() for r in carr) 1000000.0 -- Francesc Alted ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users