<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/ceval.c, branch v3.6.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/ceval.c?h=v3.6.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/ceval.c?h=v3.6.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2017-06-13T01:46:35Z</updated>
<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>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>
<entry>
<title>bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887) (#907)</title>
<updated>2017-03-30T16:46:59Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-03-30T16:46:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bf4bb2e43030661e568d5d4b046e8b9351cc164c'/>
<id>urn:sha1:bf4bb2e43030661e568d5d4b046e8b9351cc164c</id>
<content type='text'>
when pass indices of wrong type.
(cherry picked from commit d4edfc9abffca965e76ebc5957a92031a4d6c4d4)</content>
</entry>
<entry>
<title>bpo-28893: Set __cause__ for errors in async iteration protocol (#407)</title>
<updated>2017-03-03T03:28:07Z</updated>
<author>
<name>Yury Selivanov</name>
<email>yselivanov@gmail.com</email>
</author>
<published>2017-03-03T03:20:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dea5101ae101aefed14de98e6bb1658f4cae8712'/>
<id>urn:sha1:dea5101ae101aefed14de98e6bb1658f4cae8712</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-29684: Fix minor regression of PyEval_CallObjectWithKeywords. (GH-378)</title>
<updated>2017-03-01T12:14:43Z</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-03-01T12:14:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=023532e558bb0c5bf60195aebbafe63a0bebd85e'/>
<id>urn:sha1:023532e558bb0c5bf60195aebbafe63a0bebd85e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-29655: Fixed possible reference leaks in `import *`. (#301) (#348)</title>
<updated>2017-02-27T17:41:21Z</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2017-02-27T17:41:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7accf2033d03025cc5324f8b9d22582bca3623e9'/>
<id>urn:sha1:7accf2033d03025cc5324f8b9d22582bca3623e9</id>
<content type='text'>
Patch by Matthias Bussonnier.

(cherry picked from commit 160edb43571311a3785785c1dfa784afc52d87be)</content>
</entry>
<entry>
<title>bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations (#95)</title>
<updated>2017-02-27T16:08:01Z</updated>
<author>
<name>Martijn Pieters</name>
<email>github.com@zopatista.com</email>
</author>
<published>2017-02-27T16:08:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=53039ad3814a8918c5311f37bd654428b9843fcc'/>
<id>urn:sha1:53039ad3814a8918c5311f37bd654428b9843fcc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix _PyGen_yf()</title>
<updated>2016-11-24T21:33:01Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-11-24T21:33:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f7d199ff329f0cb68f367c7aa169e058b2ab50f4'/>
<id>urn:sha1:f7d199ff329f0cb68f367c7aa169e058b2ab50f4</id>
<content type='text'>
Issue #28782: Fix a bug in the implementation ``yield from`` when checking
if the next instruction is YIELD_FROM. Regression introduced by WORDCODE
(issue #26647).

Reviewed by Serhiy Storchaka and Yury Selivanov.
</content>
</entry>
<entry>
<title>Issue #27100:  Fix ref leak</title>
<updated>2016-11-22T19:50:40Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2016-11-22T19:50:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=64e2f9ac86b0f7aade2fe331136beceee975fc91'/>
<id>urn:sha1:64e2f9ac86b0f7aade2fe331136beceee975fc91</id>
<content type='text'>
</content>
</entry>
</feed>
