def accumulator(n=0):
    while True:
        n += yield n
acc = accumulator(0)
acc.send(None)
res = [{'value': acc.send(element['value']), 'date': element['date']} for
    element in some_data]
Python compute running sum of values in one-line