You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee='https://github.com/tiran'closed_at=<Date2007-12-03.20:03:23.142>created_at=<Date2007-12-02.07:08:01.997>labels= ['interpreter-core', 'type-bug']
title="Change GeneratorExit's base class from Exception to BaseException"updated_at=<Date2007-12-03.20:10:31.358>user='https://bugs.python.org/aegis'
I'm not sure this change is necessary. Why don't you catch StandardError
instead of Exception? StandardError catches all Exception subtypes
except GeneratorExit, StopIteration and the various Warnings.
The mailing list discussion continues... in the meantime, I will
update the patch with your suggestions.
Can you describe to me what should change in Doc/reference/
expressions.rst? It makes sense to remove the section in the example
that says you should never catch GeneratorExit. Should I mention
anything about why?