Xiang Zhang <angwe...@126.com> added the comment:
It's not right to replace with statement by manually calling __enter__ and __exit__. If there is any exception after __enter__ and before __exit__, __exit__ method will be skipped. That's not what we want. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34486> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com