<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules/_io, branch enum-lost-fixes</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/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:30:15+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-10-01T20:30:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2221207f44c2abd34406ee590e6b13afaca53ee8'/>
<id>2221207f44c2abd34406ee590e6b13afaca53ee8</id>
<content type='text'>
(cherry picked from commit a450398933d265011e1e8eae7f771b70f97945fb)

Co-authored-by: AngstyDuck &lt;solsticedante@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit a450398933d265011e1e8eae7f771b70f97945fb)

Co-authored-by: AngstyDuck &lt;solsticedante@gmail.com&gt;</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://git.baserock.org/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://git.baserock.org/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://git.baserock.org/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://git.baserock.org/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://git.baserock.org/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://git.baserock.org/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>
<entry>
<title>bpo-42236: Enhance _locale._get_locale_encoding() (GH-23083)</title>
<updated>2020-11-01T19:59:35+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-11-01T19:59:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=82458b6cdbae3b849dc11d0d7dc2ab06ef0451c4'/>
<id>82458b6cdbae3b849dc11d0d7dc2ab06ef0451c4</id>
<content type='text'>
* Rename _Py_GetLocaleEncoding() to _Py_GetLocaleEncodingObject()
* Add _Py_GetLocaleEncoding() which returns a wchar_t* string to
  share code between _Py_GetLocaleEncodingObject()
  and config_get_locale_encoding().
* _Py_GetLocaleEncodingObject() now decodes nl_langinfo(CODESET)
  from the current locale encoding with surrogateescape,
  rather than using UTF-8.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Rename _Py_GetLocaleEncoding() to _Py_GetLocaleEncodingObject()
* Add _Py_GetLocaleEncoding() which returns a wchar_t* string to
  share code between _Py_GetLocaleEncodingObject()
  and config_get_locale_encoding().
* _Py_GetLocaleEncodingObject() now decodes nl_langinfo(CODESET)
  from the current locale encoding with surrogateescape,
  rather than using UTF-8.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42208: Add _Py_GetLocaleEncoding() (GH-23050)</title>
<updated>2020-10-31T00:02:09+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-10-31T00:02:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=710e82630775774dceba5e8f24b1b10e6dfaf9b7'/>
<id>710e82630775774dceba5e8f24b1b10e6dfaf9b7</id>
<content type='text'>
_io.TextIOWrapper no longer calls getpreferredencoding(False) of
_bootlocale to get the locale encoding, but calls
_Py_GetLocaleEncoding() instead.

Add config_get_fs_encoding() sub-function. Reorganize also
config_get_locale_encoding() code.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
_io.TextIOWrapper no longer calls getpreferredencoding(False) of
_bootlocale to get the locale encoding, but calls
_Py_GetLocaleEncoding() instead.

Add config_get_fs_encoding() sub-function. Reorganize also
config_get_locale_encoding() code.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998)</title>
<updated>2020-10-27T16:12:53+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-10-27T16:12:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=37834136d0afe51d274bfc79d8705514cbe73727'/>
<id>37834136d0afe51d274bfc79d8705514cbe73727</id>
<content type='text'>
Use _PyLong_GetZero() and _PyLong_GetOne() in Modules/ directory.

_cursesmodule.c and zoneinfo.c are now built with
Py_BUILD_CORE_MODULE macro defined.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use _PyLong_GetZero() and _PyLong_GetOne() in Modules/ directory.

_cursesmodule.c and zoneinfo.c are now built with
Py_BUILD_CORE_MODULE macro defined.</pre>
</div>
</content>
</entry>
</feed>
