This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients John Belmonte, alex.gronholm, asvetlov, ncoghlan, njs, serhiy.storchaka, yselivanov
Date 2020-07-03.05:22:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593753738.45.0.314078368824.issue40213@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-07-03 05:22:18serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, njs, asvetlov, alex.gronholm, yselivanov, John Belmonte
2020-07-03 05:22:18serhiy.storchakasetmessageid: <1593753738.45.0.314078368824.issue40213@roundup.psfhosted.org>
2020-07-03 05:22:18serhiy.storchakalinkissue40213 messages
2020-07-03 05:22:18serhiy.storchakacreate