Message94296
One use of the start argument is used to specify an initial zero/metpy
value for the summation: 0 or 0.0 or Decimal(0) or [].
BTW, sum() isn't a good technique for concatenating lists. Instead use
something like:
result = []
for seq in data:
result.extend(seq)
A fast one-liner version:
result = list(itertools.chain.from_iterable(seq)) |
|
Date |
User |
Action |
Args |
2009-10-20 19:19:21 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, oggust |
2009-10-20 19:19:21 | rhettinger | set | messageid: <1256066361.67.0.856908036986.issue7176@psf.upfronthosting.co.za> |
2009-10-20 19:19:20 | rhettinger | link | issue7176 messages |
2009-10-20 19:19:19 | rhettinger | create | |
|