[issue13585] Add contextlib.CleanupManager

Éric Araujo report at bugs.python.org
Wed Dec 21 17:46:42 CET 2011


Éric Araujo <merwok at netwok.org> added the comment:

> The idea is to add a general-purpose context manager to manage (python
> or non-python) resources that don't come with their own context manager.

I read the thread back on python-ideas and didn’t like the idea, without knowing exactly why—maybe a feeling that it’s too generic and less clean than adding context management support to the classes directly.  My opinion is only that of a user, I’m less qualified than Nick or Raymond for this module.

In the passage I quoted, I don’t understand what is meant by “non-Python resources”.

----------
nosy: +eric.araujo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13585>
_______________________________________


More information about the Python-bugs-list mailing list