def foo():
    list_ = ['a', 'b', 'c', 'd']

def _foo_suffix():
    if something:
        yield this
yield that
yield something_else
return chain(list_, _foo_suffix())
How to Pythonically yield all values from a list?