def get_flashed_messages(with_categories=False):
    flashes = _request_ctx_stack.top.flashes
    if flashes is None:
        _request_ctx_stack.top.flashes = flashes = session.pop('_flashes', [])
    if not with_categories:
        return [x[1] for x in flashes]
    return flashes
Pulls all flashed messages from the session and returns them.
dataset/ETHPy150Open hhstore/flask-annotated/flask-0.5/flask/helpers.py/get_flashed_messages