Message372905
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. |
|
Date |
User |
Action |
Args |
2020-07-03 05:22:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ncoghlan, njs, asvetlov, alex.gronholm, yselivanov, John Belmonte |
2020-07-03 05:22:18 | serhiy.storchaka | set | messageid: <1593753738.45.0.314078368824.issue40213@roundup.psfhosted.org> |
2020-07-03 05:22:18 | serhiy.storchaka | link | issue40213 messages |
2020-07-03 05:22:18 | serhiy.storchaka | create | |
|