| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Remove the undocumented io.OpenWrapper and _pyio.OpenWrapper functions which could be used directly to define a method: staticmethod(open) should now be used instead.
| (Contributed by Yurii Karabas, Andrew Svetlov, Yury Selivanov and Kyle Stanley | ||
| in :issue:`42392`.) | ||
|
|
||
| * Remove the undocumented ``io.OpenWrapper`` and ``_pyio.OpenWrapper`` |
There was a problem hiding this comment.
OpenWrapper itself is not purposed to be used in user code. The main effect is that it changes builtin open if Python implementation is used. It can affect PyPy or other implementations.
Sorry, something went wrong.
There was a problem hiding this comment.
_pyio is supposed to be a drop-in replacement for the io module, whereas _pyio.open and io.open behave differently.
See https://bugs.python.org/issue43682 which would make it possible to use _pyio.open as a method, rather than having to go through OpenWrapper.
Sorry, something went wrong.
There was a problem hiding this comment.
Doc/whatsnew/3.10.rst
Sorry, something went wrong.
|
I wrote PR #25357 to only deprecate the class, rather than removing it. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Remove the undocumented io.OpenWrapper and _pyio.OpenWrapper
functions which could be used directly to define a method:
staticmethod(open) should now be used instead.
https://bugs.python.org/issue43680