Terry J. Reedy added the comment: I agree and consider this is an argument for adding the context manager methods and using them with 'with' in the examples. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26404> _______________________________________