-
- Downloads
bpo-43680: Deprecate io.OpenWrapper (GH-25357)
Deprecate io.OpenWrapper and _pyio.OpenWrapper: use io.open and _pyio.open instead. Until Python 3.9, _pyio.open was not a static method and builtins.open was set to OpenWrapper to not become a bound method when set to a class variable. _io.open is a built-in function whereas _pyio.open is a Python function. In Python 3.10, _pyio.open() is now a static method, and builtins.open() is now io.open().
Showing
- Lib/_pyio.py 14 additions, 12 deletionsLib/_pyio.py
- Lib/io.py 16 additions, 1 deletionLib/io.py
- Lib/test/test_io.py 8 additions, 2 deletionsLib/test/test_io.py
- Misc/NEWS.d/next/Library/2021-04-12-11-20-34.bpo-43680.SR0Epv.rst 6 additions, 0 deletions...S.d/next/Library/2021-04-12-11-20-34.bpo-43680.SR0Epv.rst
Loading
Please register or sign in to comment