<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/_pyio.py, branch 3.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/_pyio.py?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/_pyio.py?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-03-04T18:33:57Z</updated>
<entry>
<title>bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631)</title>
<updated>2022-03-04T18:33:57Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-03-04T18:33:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bdce1880365990403efdbeb60c4928c996370b0c'/>
<id>urn:sha1:bdce1880365990403efdbeb60c4928c996370b0c</id>
<content type='text'>
(cherry picked from commit cedd2473a9bebe07f3ced4f341cf58a2fef07b03)

Co-authored-by: slateny &lt;46876382+slateny@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-43680: Deprecate io.OpenWrapper (GH-25357)</title>
<updated>2021-04-14T01:24:33Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-04-14T01:24:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3bc694d5f3d4eb2e5d2f0b83e498b19662845d4e'/>
<id>urn:sha1:3bc694d5f3d4eb2e5d2f0b83e498b19662845d4e</id>
<content type='text'>
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().</content>
</entry>
<entry>
<title>bpo-43680: _pyio.open() becomes a static method (GH-25354)</title>
<updated>2021-04-12T08:44:53Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-04-12T08:44:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=77d668b1221d0f8c3e9d6b6199f67aaf3c45f040'/>
<id>urn:sha1:77d668b1221d0f8c3e9d6b6199f67aaf3c45f040</id>
<content type='text'>
The Python _pyio.open() function becomes a static method to behave as
io.open() built-in function: don't become a bound method when stored
as a class variable. It becomes possible since static methods are now
callable in Python 3.10. Moreover, _pyio.OpenWrapper becomes a simple
alias to _pyio.open.

init_set_builtins_open() now sets builtins.open to io.open, rather
than setting it to io.OpenWrapper, since OpenWrapper is now an alias
to open in the io and _pyio modules.</content>
</entry>
<entry>
<title>Revert "bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)" (#25108)</title>
<updated>2021-03-31T09:49:41Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-03-31T09:49:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cfa176685a5e788bafc7749d7a93f43ea3e4de9f'/>
<id>urn:sha1:cfa176685a5e788bafc7749d7a93f43ea3e4de9f</id>
<content type='text'>
This reverts commit ff3c9739bd69aa8b58007e63c9e40e6708b4761e.</content>
</entry>
<entry>
<title>bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)</title>
<updated>2021-03-31T05:26:08Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-03-31T05:26:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ff3c9739bd69aa8b58007e63c9e40e6708b4761e'/>
<id>urn:sha1:ff3c9739bd69aa8b58007e63c9e40e6708b4761e</id>
<content type='text'>
It make `encoding="locale"` usable everywhere `encoding=None` is
allowed.</content>
</entry>
<entry>
<title>bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)</title>
<updated>2021-03-29T03:28:14Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-03-29T03:28:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4827483f47906fecee6b5d9097df2a69a293a85c'/>
<id>urn:sha1:4827483f47906fecee6b5d9097df2a69a293a85c</id>
<content type='text'>
See [PEP 597](https://www.python.org/dev/peps/pep-0597/).

* Add `-X warn_default_encoding` and `PYTHONWARNDEFAULTENCODING`.
* Add EncodingWarning
* Add io.text_encoding()
* open(), TextIOWrapper() emits EncodingWarning when encoding is omitted and warn_default_encoding is enabled.
* _pyio.TextIOWrapper() uses UTF-8 as fallback default encoding used when failed to import locale module. (used during building Python)
* bz2, configparser, gzip, lzma, pathlib, tempfile modules use io.text_encoding().
* What's new entry</content>
</entry>
<entry>
<title>bpo-39674: Revert "bpo-37330: open() no longer accept 'U' in file mode (GH-16959)" (GH-18767)</title>
<updated>2020-03-04T17:50:22Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-03-04T17:50:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=942f7a2dea2e95a0fa848329565c0d0288d92e47'/>
<id>urn:sha1:942f7a2dea2e95a0fa848329565c0d0288d92e47</id>
<content type='text'>
This reverts commit e471e72977c83664f13d041c78549140c86c92de.

The mode will be removed from Python 3.10.</content>
</entry>
<entry>
<title>bpo-35950: Raise UnsupportedOperation in BufferedReader.truncate() (GH-18586)</title>
<updated>2020-02-21T17:57:26Z</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2020-02-21T17:57:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd5116c0e77aec05f67fb24f10562ac920648035'/>
<id>urn:sha1:fd5116c0e77aec05f67fb24f10562ac920648035</id>
<content type='text'>
The truncate() method of io.BufferedReader() should raise
UnsupportedOperation when it is called on a read-only
io.BufferedReader() instance.





https://bugs.python.org/issue35950



Automerge-Triggered-By: @methane</content>
</entry>
<entry>
<title>closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. (GH-17112)</title>
<updated>2019-11-12T22:51:34Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2019-11-12T22:51:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=74fa9f723f700a342e582b5ad4b51a2c4801cd1c'/>
<id>urn:sha1:74fa9f723f700a342e582b5ad4b51a2c4801cd1c</id>
<content type='text'>
This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode.</content>
</entry>
<entry>
<title>bpo-37330: open() no longer accept 'U' in file mode (GH-16959)</title>
<updated>2019-10-28T14:40:08Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-28T14:40:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e471e72977c83664f13d041c78549140c86c92de'/>
<id>urn:sha1:e471e72977c83664f13d041c78549140c86c92de</id>
<content type='text'>
open(), io.open(), codecs.open() and fileinput.FileInput no longer
accept "U" ("universal newline") in the file mode. This flag was
deprecated since Python 3.3.</content>
</entry>
</feed>
