<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python, branch v3.6.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python?h=v3.6.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python?h=v3.6.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2017-06-16T13:29:42Z</updated>
<entry>
<title>[3.6] bpo-30682: Removed a too-strict assertion that failed for certain f-strings. (GH-2232) (#2242)</title>
<updated>2017-06-16T13:29:42Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-16T13:29:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2eca5b465f7404cc8484457b7966f828f434ec20'/>
<id>urn:sha1:2eca5b465f7404cc8484457b7966f828f434ec20</id>
<content type='text'>
This caused a segfault on eval("f'\\\n'") and eval("f'\\\r'") in debug build..
(cherry picked from commit 11e97f2f80bf65cc828c127eafc95229df35d403)</content>
</entry>
<entry>
<title>[3.6] bpo-30626: Fix error handling in PyImport_Import(). (GH-2103) (#2221)</title>
<updated>2017-06-15T18:15:11Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-15T18:15:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fab05de21480fc54a5101cf813195cb32724b5ad'/>
<id>urn:sha1:fab05de21480fc54a5101cf813195cb32724b5ad</id>
<content type='text'>
In rare circumstances PyImport_Import() could return NULL without raising
an error.
(cherry picked from commit 145541c)</content>
</entry>
<entry>
<title>bpo-30604: Fix __PyCodeExtraState_Get() prototype (#2152)</title>
<updated>2017-06-13T08:39:30Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-06-13T08:39:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=932946ca14168e556293d2508c8eebb23a56a2b2'/>
<id>urn:sha1:932946ca14168e556293d2508c8eebb23a56a2b2</id>
<content type='text'>
Replace __PyCodeExtraState_Get() with __PyCodeExtraState_Get(void) to
fix the following GCC warning:

./Include/pystate.h:63:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 __PyCodeExtraState* __PyCodeExtraState_Get();</content>
</entry>
<entry>
<title>[3.6] bpo-30604: Move co_extra_freefuncs to interpreter state to avoid crashes in threads (#2015)</title>
<updated>2017-06-13T01:46:35Z</updated>
<author>
<name>Dino Viehland</name>
<email>dinov@microsoft.com</email>
</author>
<published>2017-06-13T01:46:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2997fec01ee7300c6d5940e6c55e4ccf9f56f1b5'/>
<id>urn:sha1:2997fec01ee7300c6d5940e6c55e4ccf9f56f1b5</id>
<content type='text'>
* Move co_extra_freefuncs to interpreter state to avoid crashes in
multi-threaded scenarios involving deletion of code objects

* Don't require that extra be zero initialized

* Build test list instead of defining empty test class

* Ensure extra is always assigned on success

* Keep the old fields in the thread state object, just don't use them
Add new linked list of code extra objects on a per-interpreter basis
  so that interpreter state size isn't changed

* Rename __PyCodeExtraState_Get and add comment about it going away in 3.7
Fix sort order of import's in test_code.py

* Remove an extraneous space

* Remove docstrings for comments

* Touch up formatting

* Fix casing of coextra local

* Fix casing of another variable

* Prefix PyCodeExtraState with __ to match C API for getting it

* Update NEWS file for bpo-30604
</content>
</entry>
<entry>
<title>[3.6] bpo-30039: Don't run signal handlers while resuming a yield from stack (GH-1081) (#1640)</title>
<updated>2017-06-09T21:06:39Z</updated>
<author>
<name>Yury Selivanov</name>
<email>yury@magic.io</email>
</author>
<published>2017-06-09T21:06:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e89f95bfd0881a9b80c3b1430d154a77bdf5a824'/>
<id>urn:sha1:e89f95bfd0881a9b80c3b1430d154a77bdf5a824</id>
<content type='text'>
If we have a chain of generators/coroutines that are 'yield from'ing
each other, then resuming the stack works like:

- call send() on the outermost generator
- this enters _PyEval_EvalFrameDefault, which re-executes the
  YIELD_FROM opcode
- which calls send() on the next generator
- which enters _PyEval_EvalFrameDefault, which re-executes the
  YIELD_FROM opcode
- ...etc.

However, every time we enter _PyEval_EvalFrameDefault, the first thing
we do is to check for pending signals, and if there are any then we
run the signal handler. And if it raises an exception, then we
immediately propagate that exception *instead* of starting to execute
bytecode. This means that e.g. a SIGINT at the wrong moment can "break
the chain" – it can be raised in the middle of our yield from chain,
with the bottom part of the stack abandoned for the garbage collector.

The fix is pretty simple: there's already a special case in
_PyEval_EvalFrameEx where it skips running signal handlers if the next
opcode is SETUP_FINALLY. (I don't see how this accomplishes anything
useful, but that's another story.) If we extend this check to also
skip running signal handlers when the next opcode is YIELD_FROM, then
that closes the hole – now the exception can only be raised at the
innermost stack frame.

This shouldn't have any performance implications, because the opcode
check happens inside the "slow path" after we've already determined
that there's a pending signal or something similar for us to process;
the vast majority of the time this isn't true and the new check
doesn't run at all..
(cherry picked from commit ab4413a7e9bda95b6fcd517073e2a51dafaa1624)</content>
</entry>
<entry>
<title>[3.6] bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. (GH-1888) (#2013)</title>
<updated>2017-06-08T21:38:06Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-08T21:38:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=570b1c971c31cd08dbf060f4e21636c40aa47786'/>
<id>urn:sha1:570b1c971c31cd08dbf060f4e21636c40aa47786</id>
<content type='text'>
'invalid character in identifier' now is raised instead of
'f-string: empty expression not allowed' if a subexpression contains
only whitespaces and they are not accepted by Python parser.
(cherry picked from commit 2e9cd58)</content>
</entry>
<entry>
<title>[3.6] bpo-30567: Fix refleak in sys.getwindowsversion (GH-1940) (#1970)</title>
<updated>2017-06-06T16:23:02Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-06T16:23:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=68e5af89d46db6250a0fa7fe4249c66f866faff8'/>
<id>urn:sha1:68e5af89d46db6250a0fa7fe4249c66f866faff8</id>
<content type='text'>
(cherry picked from commit 48fb766)</content>
</entry>
<entry>
<title>[3.6] bpo-29104: Fixed parsing backslashes in f-strings. (GH-490) (#1812)</title>
<updated>2017-05-25T11:18:55Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-05-25T11:18:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=89a310264000a613b7f6abd5916946aef09ae7d2'/>
<id>urn:sha1:89a310264000a613b7f6abd5916946aef09ae7d2</id>
<content type='text'>
(cherry picked from commit 0cd7a3f)</content>
</entry>
<entry>
<title>[3.6] bpo-30395 _PyGILState_Reinit deadlock fix (GH-1734) (#1740)</title>
<updated>2017-05-23T05:23:05Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2017-05-23T05:23:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d29feccec3ce3dcd9ab3100f8956171c70ec3027'/>
<id>urn:sha1:d29feccec3ce3dcd9ab3100f8956171c70ec3027</id>
<content type='text'>
head_lock could be held by another thread when fork happened. We should
reset it to avoid deadlock.
(cherry picked from commit f82c951d1c5416f3550d544e50ff5662d3836e73)</content>
</entry>
<entry>
<title>bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) (#1529)</title>
<updated>2017-05-10T11:00:15Z</updated>
<author>
<name>Xiang Zhang</name>
<email>angwerzx@126.com</email>
</author>
<published>2017-05-10T11:00:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=98b49a00d413972965044fd355be3b8482caa07c'/>
<id>urn:sha1:98b49a00d413972965044fd355be3b8482caa07c</id>
<content type='text'>
</content>
</entry>
</feed>
