STINNER Victor <victor.stin...@haypocalc.com> added the comment: About your patch: - __enter__() might return self instead of None... i don't really know which choice is better. "with Null() as x:" works in both cases - __exit__() has no result value, "pass" is enough - I don't like "Null" name, I prefer "Noop" (NoOperation, NoOp, ...) or something else
---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10049> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com