def parse_diff_hist(curr_obj, diff_hist):
    curr_obj, diff_hist = _norm_json_params(curr_obj, diff_hist)

    yield (json.dumps(curr_obj), None)

    last_obj = curr_obj
    for one in reversed(diff_hist):
        last_obj = record_patch(last_obj, one['diff'])
        yield json.dumps(last_obj), one['diff_date']
Check for an event without waiting.
dataset/ETHPy150Open memphis-iis/GLUDB/gludb/versioning.py/parse_diff_hist--crossover with--dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/screen.py/_CursesScreen.get_event