Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
def gen():
yield 1
return 42
g = gen()
print(next(g))
try:
except StopIteration as e:
print(type(e), e.args)
# trying next again should raise StopIteration with no arguments