<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules/_io, branch master</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)</title>
<updated>2021-10-01T20:11:08+00:00</updated>
<author>
<name>AngstyDuck</name>
<email>solsticedante@gmail.com</email>
</author>
<published>2021-10-01T20:11:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=a450398933d265011e1e8eae7f771b70f97945fb'/>
<id>a450398933d265011e1e8eae7f771b70f97945fb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43413: Fix handling keyword arguments in subclasses of some buitin classes (GH-26456)</title>
<updated>2021-09-12T10:27:50+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-09-12T10:27:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=92bf8691fb78f3484bf2daba836c416efedb1d8d'/>
<id>92bf8691fb78f3484bf2daba836c416efedb1d8d</id>
<content type='text'>
* Constructors of subclasses of some buitin classes (e.g. tuple, list,
  frozenset) no longer accept arbitrary keyword arguments.
* Subclass of set can now define a __new__() method with additional
  keyword parameters without overriding also __init__().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Constructors of subclasses of some buitin classes (e.g. tuple, list,
  frozenset) no longer accept arbitrary keyword arguments.
* Subclass of set can now define a __new__() method with additional
  keyword parameters without overriding also __init__().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-45094: Add Py_NO_INLINE macro (GH-28140)</title>
<updated>2021-09-03T14:44:02+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-09-03T14:44:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7974c30b9fd84fa56ea1515ed2c08b38edf1a383'/>
<id>7974c30b9fd84fa56ea1515ed2c08b38edf1a383</id>
<content type='text'>
* Rename _Py_NO_INLINE macro to Py_NO_INLINE: make it public and
  document it.
* Sort macros in the C API documentation.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Rename _Py_NO_INLINE macro to Py_NO_INLINE: make it public and
  document it.
* Sort macros in the C API documentation.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37330: open() no longer accept 'U' in file mode (GH-28118)</title>
<updated>2021-09-02T10:58:00+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-09-02T10:58:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=19ba2122ac7313ac29207360cfa864a275b9489e'/>
<id>19ba2122ac7313ac29207360cfa864a275b9489e</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30555: Fix WindowsConsoleIO fails in the presence of fd redirection (GH-1927)</title>
<updated>2021-04-23T22:00:27+00:00</updated>
<author>
<name>Segev Finer</name>
<email>segev208@gmail.com</email>
</author>
<published>2021-04-23T22:00:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5e437fb872279960992c9a07f1a4c051b4948c53'/>
<id>5e437fb872279960992c9a07f1a4c051b4948c53</id>
<content type='text'>
This works by not caching the handle and instead getting the handle from
the file descriptor each time, so that if the actual handle changes by
fd redirection closing/opening the console handle beneath our feet, we
will keep working correctly.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This works by not caching the handle and instead getting the handle from
the file descriptor each time, so that if the actual handle changes by
fd redirection closing/opening the console handle beneath our feet, we
will keep working correctly.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43510: Fix emitting EncodingWarning from _io module. (GH-25146)</title>
<updated>2021-04-02T08:38:59+00:00</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-04-02T08:38:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=bec8c787ec72d73b39011bde3f3a93e9bb1174b7'/>
<id>bec8c787ec72d73b39011bde3f3a93e9bb1174b7</id>
<content type='text'>
I forget to check PyErr_WarnEx() return value. But it will fail when -Werror is used.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I forget to check PyErr_WarnEx() return value. But it will fail when -Werror is used.</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)" (#25108)</title>
<updated>2021-03-31T09:49:41+00:00</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-03-31T09:49:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cfa176685a5e788bafc7749d7a93f43ea3e4de9f'/>
<id>cfa176685a5e788bafc7749d7a93f43ea3e4de9f</id>
<content type='text'>
This reverts commit ff3c9739bd69aa8b58007e63c9e40e6708b4761e.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit ff3c9739bd69aa8b58007e63c9e40e6708b4761e.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)</title>
<updated>2021-03-31T05:26:08+00:00</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-03-31T05:26:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ff3c9739bd69aa8b58007e63c9e40e6708b4761e'/>
<id>ff3c9739bd69aa8b58007e63c9e40e6708b4761e</id>
<content type='text'>
It make `encoding="locale"` usable everywhere `encoding=None` is
allowed.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It make `encoding="locale"` usable everywhere `encoding=None` is
allowed.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)</title>
<updated>2021-03-29T03:28:14+00:00</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-03-29T03:28:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4827483f47906fecee6b5d9097df2a69a293a85c'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592)</title>
<updated>2021-02-21T23:29:30+00:00</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-02-21T23:29:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=01806d5beba3d208bb56adba6829097d803bf54f'/>
<id>01806d5beba3d208bb56adba6829097d803bf54f</id>
<content type='text'>
When very large data remains in TextIOWrapper, flush() may fail forever.

So prevent that data larger than chunk_size is remained in TextIOWrapper internal
buffer.

Co-Authored-By: Eryk Sun</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When very large data remains in TextIOWrapper, flush() may fail forever.

So prevent that data larger than chunk_size is remained in TextIOWrapper internal
buffer.

Co-Authored-By: Eryk Sun</pre>
</div>
</content>
</entry>
</feed>
