[issue46556] pathlib.Path.__enter__() should emit DeprecationWarning

2022-02-08 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46556] pathlib.Path.__enter__() should emit DeprecationWarning

2022-02-08 Thread Brett Cannon
Brett Cannon added the comment: New changeset 06e1701ad3956352bc0f42b8f51c2f8cc85bf378 by Barney Gale in branch 'main': bpo-46556: emit `DeprecationWarning` from `pathlib.Path.__enter__()` (GH-30971) https://github.com/python/cpython/commit/06e1701ad3956352bc0f42b8f51c2f8cc85bf378

[issue46556] pathlib.Path.__enter__() should emit DeprecationWarning

2022-01-27 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +29149 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30971 ___ Python tracker ___

[issue46556] pathlib.Path.__enter__() should emit DeprecationWarning

2022-01-27 Thread Barney Gale
New submission from Barney Gale : In Python 3.9 / issue39682 we made Path.__exit__() a no-op, and added a comment in the code mentioning that it should be deprecated in future. The future is here, so let's deprecate it. -- components: Library (Lib) messages: 411936 nosy: barneygale