
June 23, 2019
2:02 p.m.
If a function that tends to return a context manager returns None, that should not mean an error occurred. If an error or unexpected condition occurred, an exception should be thrown. Errors and exceptions should result in the code within the with statement not executing. We could add a new constant to Python, “Dont.” It’s a global falsey Singleton and a context manager that causes the code inside “with” not to execute.
On May 18, 2019, at 10:44 PM, Yonatan Zunger <zunger@humu.com> wrote:
an