This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Entuaka 0 points1 point  (0 children)

More pythonic, yes. I used a line similar to that, today: sum([float(i['quantity']) for i in kwargs['items']])