<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/_pyio.py, branch v3.7.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/_pyio.py?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/_pyio.py?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-06-29T10:34:34Z</updated>
<entry>
<title>bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918)</title>
<updated>2018-06-29T10:34:34Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-06-29T10:34:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eabebbb54c2604fd8d08e8019ea1be634aed8c2f'/>
<id>urn:sha1:eabebbb54c2604fd8d08e8019ea1be634aed8c2f</id>
<content type='text'>
(cherry picked from commit 23db935bcf258657682e66464bf8512def8af830)

Co-authored-by: Zackery Spytz &lt;zspytz@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-15216: io: TextIOWrapper.reconfigure() accepts encoding, errors and newline (GH-2343)</title>
<updated>2017-12-21T00:59:53Z</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-12-21T00:59:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=507434fd504f3ebc1da72aa77544edc0d73f136e'/>
<id>urn:sha1:507434fd504f3ebc1da72aa77544edc0d73f136e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-17852: Revert incorrect fix based on misunderstanding of _Py_PyAtExit() semantics (#4826)</title>
<updated>2017-12-13T00:39:26Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-12-13T00:39:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=317def9fdb29893df1ab380d396fcdd2eafe0588'/>
<id>urn:sha1:317def9fdb29893df1ab380d396fcdd2eafe0588</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-31976: Fix race condition when flushing a file is slow. (#4331)</title>
<updated>2017-11-10T21:03:40Z</updated>
<author>
<name>benfogle</name>
<email>benfogle@gmail.com</email>
</author>
<published>2017-11-10T21:03:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9703f092abc0259926d88c7855afeae4a78afc7d'/>
<id>urn:sha1:9703f092abc0259926d88c7855afeae4a78afc7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-17852: Maintain a list of BufferedWriter objects.  Flush them on exit. (#3372)</title>
<updated>2017-09-22T17:17:30Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nas-github@arctrix.com</email>
</author>
<published>2017-09-22T17:17:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a1ff24acfc15d8c7f2dc41000a6f3d9a31e7480'/>
<id>urn:sha1:0a1ff24acfc15d8c7f2dc41000a6f3d9a31e7480</id>
<content type='text'>
* Maintain a list of BufferedWriter objects.  Flush them on exit.

In Python 3, the buffer and the underlying file object are separate
and so the order in which objects are finalized matters.  This is
unlike Python 2 where the file and buffer were a single object and
finalization was done for both at the same time.  In Python 3, if
the file is finalized and closed before the buffer then the data in
the buffer is lost.

This change adds a doubly linked list of open file buffers.  An atexit
hook ensures they are flushed before proceeding with interpreter
shutdown.  This is addition does not remove the need to properly close
files as there are other reasons why buffered data could get lost during
finalization.

Initial patch by Armin Rigo.

* Use weakref.WeakSet instead of WeakKeyDictionary.

* Simplify buffered double-linked list types.

* In _flush_all_writers(), suppress errors from flush().

* Remove NEWS entry, use blurb.

* Take more care when flushing file buffers from atexit.

The previous implementation was not careful enough to avoid
causing issues in multi-threaded cases.  Check for buf-&gt;ok
and buf-&gt;finalizing before actually doing the flush.  Also,
increase the refcnt to ensure the object does not disappear.
</content>
</entry>
<entry>
<title>bpo-31370: Remove support for threads-less builds (#3385)</title>
<updated>2017-09-07T16:56:24Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-09-07T16:56:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344'/>
<id>urn:sha1:a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344</id>
<content type='text'>
* Remove Setup.config
* Always define WITH_THREAD for compatibility.

</content>
</entry>
<entry>
<title>Revert "bpo-17852: Maintain a list of BufferedWriter objects.  Flush them on exit. (#1908)" (#3337)</title>
<updated>2017-09-05T05:13:17Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nas-github@arctrix.com</email>
</author>
<published>2017-09-05T05:13:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=db564238db440d4a2d8eb9d60ffb94ef291f6d30'/>
<id>urn:sha1:db564238db440d4a2d8eb9d60ffb94ef291f6d30</id>
<content type='text'>
This reverts commit e38d12ed34870c140016bef1e0ff10c8c3d3f213.</content>
</entry>
<entry>
<title>bpo-17852: Maintain a list of BufferedWriter objects.  Flush them on exit. (#1908)</title>
<updated>2017-09-05T03:18:38Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nas-github@arctrix.com</email>
</author>
<published>2017-09-05T03:18:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e38d12ed34870c140016bef1e0ff10c8c3d3f213'/>
<id>urn:sha1:e38d12ed34870c140016bef1e0ff10c8c3d3f213</id>
<content type='text'>
* Maintain a list of BufferedWriter objects.  Flush them on exit.

In Python 3, the buffer and the underlying file object are separate
and so the order in which objects are finalized matters.  This is
unlike Python 2 where the file and buffer were a single object and
finalization was done for both at the same time.  In Python 3, if
the file is finalized and closed before the buffer then the data in
the buffer is lost.

This change adds a doubly linked list of open file buffers.  An atexit
hook ensures they are flushed before proceeding with interpreter
shutdown.  This is addition does not remove the need to properly close
files as there are other reasons why buffered data could get lost during
finalization.

Initial patch by Armin Rigo.

* Use weakref.WeakSet instead of WeakKeyDictionary.

* Simplify buffered double-linked list types.

* In _flush_all_writers(), suppress errors from flush().

* Remove NEWS entry, use blurb.
</content>
</entry>
<entry>
<title>bpo-29741: Update some methods in the _pyio module to also accept integer types. Patch by Oren Milman. (#560)</title>
<updated>2017-08-24T18:33:42Z</updated>
<author>
<name>Oren Milman</name>
<email>orenmn@gmail.com</email>
</author>
<published>2017-08-24T18:33:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=de50360ac2fec81dbf733f6c3c739b39a8822a39'/>
<id>urn:sha1:de50360ac2fec81dbf733f6c3c739b39a8822a39</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix bpo-30526: Add TextIOWrapper.reconfigure() and a TextIOWrapper.write_through attribute (#1922)</title>
<updated>2017-06-03T10:32:28Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-06-03T10:32:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3c2817b6884a5fcf792197203f3c26b157210607'/>
<id>urn:sha1:3c2817b6884a5fcf792197203f3c26b157210607</id>
<content type='text'>
* Fix bpo-30526: Add TextIOWrapper.reconfigure()

* Apply Nick's improved wording

* Update Misc/NEWS
</content>
</entry>
</feed>
