Roy Hyunjin Han added the comment: The behavior may not be surprising from a technical perspective, but it is unintuitive.
I think exceptions inside a with statement should trigger a traceback, unless you are saying that it is the responsibility of the author to catch and raise the exception inside __exit__, which feels to me like a workaround that is specific to parse_args. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24070> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com