<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/ceval.c, branch Mariatta-patch-2</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-42006: Stop using PyDict_GetItem, PyDict_GetItemString and _PyDict_GetItemId. (GH-22648)</title>
<updated>2020-10-26T06:43:39+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-10-26T06:43:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=fb5db7ec58624cab0797b4050735be865d380823'/>
<id>fb5db7ec58624cab0797b4050735be865d380823</id>
<content type='text'>
These functions are considered not safe because they suppress all internal errors
and can return wrong result.  PyDict_GetItemString and _PyDict_GetItemId can
also silence current exception in rare cases.

Remove no longer used _PyDict_GetItemId.
Add _PyDict_ContainsId and rename _PyDict_Contains into
_PyDict_Contains_KnownHash.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These functions are considered not safe because they suppress all internal errors
and can return wrong result.  PyDict_GetItemString and _PyDict_GetItemId can
also silence current exception in rare cases.

Remove no longer used _PyDict_GetItemId.
Add _PyDict_ContainsId and rename _PyDict_Contains into
_PyDict_Contains_KnownHash.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42093: Add opcode cache for LOAD_ATTR (GH-22803)</title>
<updated>2020-10-20T05:22:44+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-10-20T05:22:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=109826c8508dd02e06ae0f1784f1d202495a8680'/>
<id>109826c8508dd02e06ae0f1784f1d202495a8680</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41756: Add PyIter_Send function (#22443)</title>
<updated>2020-10-10T00:15:15+00:00</updated>
<author>
<name>Vladimir Matveev</name>
<email>vladima@fb.com</email>
</author>
<published>2020-10-10T00:15:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=037245c5ac46c3436f617a1f5d965929754be239'/>
<id>037245c5ac46c3436f617a1f5d965929754be239</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41936. Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION (GH-22552)</title>
<updated>2020-10-05T09:32:00+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-10-05T09:32:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e'/>
<id>dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-21955: Change my nickname in BINARY_ADD comment (GH-22481)</title>
<updated>2020-10-01T16:57:37+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-10-01T16:57:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=bd0a08ea90e4c7a2ebf29697937e9786d4d8e5ee'/>
<id>bd0a08ea90e4c7a2ebf29697937e9786d4d8e5ee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41670: Remove outdated predict macro invocation. (GH-22026)</title>
<updated>2020-09-29T09:09:13+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2020-09-29T09:09:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=17b5be0c0a3f74141014e06a660f1b5ddb002fec'/>
<id>17b5be0c0a3f74141014e06a660f1b5ddb002fec</id>
<content type='text'>
Remove PREDICTion of POP_BLOCK from FOR_ITER.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove PREDICTion of POP_BLOCK from FOR_ITER.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40941: Fix stackdepth compiler warnings (GH-22377)</title>
<updated>2020-09-23T12:07:16+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-09-23T12:07:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b7d8d8dbfe83040087a63662e0b908f4b5ac24b0'/>
<id>b7d8d8dbfe83040087a63662e0b908f4b5ac24b0</id>
<content type='text'>
Explicitly cast a difference of two pointers to int:
PyFrameObject.f_stackdepth is an int.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Explicitly cast a difference of two pointers to int:
PyFrameObject.f_stackdepth is an int.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41834: Remove _Py_CheckRecursionLimit variable (GH-22359)</title>
<updated>2020-09-23T12:04:57+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-09-23T12:04:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=19c3ac92bf73f1902cff846988552fd7bb8a8621'/>
<id>19c3ac92bf73f1902cff846988552fd7bb8a8621</id>
<content type='text'>
Remove the global _Py_CheckRecursionLimit variable: it has been
replaced by ceval.recursion_limit of the PyInterpreterState
structure.

There is no need to keep the variable for the stable ABI, since
Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() were not usable
in Python 3.8 and older: these macros accessed PyThreadState members,
whereas the PyThreadState structure is opaque in the limited C API.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the global _Py_CheckRecursionLimit variable: it has been
replaced by ceval.recursion_limit of the PyInterpreterState
structure.

There is no need to keep the variable for the stable ABI, since
Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() were not usable
in Python 3.8 and older: these macros accessed PyThreadState members,
whereas the PyThreadState structure is opaque in the limited C API.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41756: Introduce PyGen_Send C API (GH-22196)</title>
<updated>2020-09-19T01:38:38+00:00</updated>
<author>
<name>Vladimir Matveev</name>
<email>vladima@fb.com</email>
</author>
<published>2020-09-19T01:38:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2b05361bf7cbbd76035206fd9befe87f37489f1e'/>
<id>2b05361bf7cbbd76035206fd9befe87f37489f1e</id>
<content type='text'>
The new API allows to efficiently send values into native generators
and coroutines avoiding use of StopIteration exceptions to signal 
returns.

ceval loop now uses this method instead of the old "private"
_PyGen_Send C API. This translates to 1.6x increased performance
of 'await' calls in micro-benchmarks.

Aside from CPython core improvements, this new API will also allow 
Cython to generate more efficient code, benefiting high-performance
IO libraries like uvloop.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new API allows to efficiently send values into native generators
and coroutines avoiding use of StopIteration exceptions to signal 
returns.

ceval loop now uses this method instead of the old "private"
_PyGen_Send C API. This translates to 1.6x increased performance
of 'await' calls in micro-benchmarks.

Aside from CPython core improvements, this new API will also allow 
Cython to generate more efficient code, benefiting high-performance
IO libraries like uvloop.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40941: Unify implicit and explicit state in the frame and generator objects into a single value. (GH-20803)</title>
<updated>2020-07-17T10:44:23+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2020-07-17T10:44:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cb9879b948a19c9434316f8ab6aba9c4601a8173'/>
<id>cb9879b948a19c9434316f8ab6aba9c4601a8173</id>
<content type='text'>
* Merge gen and frame state variables into one.

* Replace stack pointer with depth in PyFrameObject. Makes code easier to read and saves a word of memory.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Merge gen and frame state variables into one.

* Replace stack pointer with depth in PyFrameObject. Makes code easier to read and saves a word of memory.</pre>
</div>
</content>
</entry>
</feed>
