Hudson River Trading interview question

What is a generator and decorator in Python?