Barney Gale <barney.g...@gmail.com> added the comment:
Can I ask what sort of backwards-compatibility guarantees Python provides for these cases? In the case of using a Path object as a context manager, I think we can say: - It's easy to do - there's no need to call any underscore-prefixed methods for example - It's undocumented - It's pretty hard to determine existing usage statically - grepping for `with p:` is years of work. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39682> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com