Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Do you have use cases or want to add it for pure "symmetry" reasons? contextlib.closing() was added when context managers were new, and many classes that own resources did have the close() method but did not support the context manager protocol. Now most of these classes are context managers, and new classes usually are written with the support of the context manager protocol from beginning. The usefulness of contextlib.closing() is much smaller now. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40213> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com