<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python, branch refactor-lambda-parameters</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-40334: Support type comments (GH-19780)</title>
<updated>2020-04-30T19:12:19+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-30T19:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c001c09e9059ba04bc088349cd87a1374dc0754f'/>
<id>c001c09e9059ba04bc088349cd87a1374dc0754f</id>
<content type='text'>
This implements full support for # type: &lt;type&gt; comments, # type: ignore &lt;stuff&gt; comments, and the func_type parsing mode for ast.parse() and compile().

Closes https://github.com/we-like-parsers/cpython/issues/95.

(For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)

The only thing missing is `feature_version=N`, which is being tracked in https://github.com/we-like-parsers/cpython/issues/124.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This implements full support for # type: &lt;type&gt; comments, # type: ignore &lt;stuff&gt; comments, and the func_type parsing mode for ast.parse() and compile().

Closes https://github.com/we-like-parsers/cpython/issues/95.

(For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)

The only thing missing is `feature_version=N`, which is being tracked in https://github.com/we-like-parsers/cpython/issues/124.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40421: Add PyFrame_GetBack() function (GH-19765)</title>
<updated>2020-04-29T01:28:46+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-29T01:28:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=703647732359200c54f1d2e695cc3a06b9a96c9a'/>
<id>703647732359200c54f1d2e695cc3a06b9a96c9a</id>
<content type='text'>
New PyFrame_GetBack() function: get the frame next outer frame.

Replace frame-&gt;f_back with PyFrame_GetBack(frame) in most code but
frameobject.c, ceval.c and genobject.c.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New PyFrame_GetBack() function: get the frame next outer frame.

Replace frame-&gt;f_back with PyFrame_GetBack(frame) in most code but
frameobject.c, ceval.c and genobject.c.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40429: PyThreadState_GetFrame() returns a strong ref (GH-19781)</title>
<updated>2020-04-29T01:01:43+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-29T01:01:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=4386b9045e5fe1151e65c2816264b5710000eb9f'/>
<id>4386b9045e5fe1151e65c2816264b5710000eb9f</id>
<content type='text'>
The PyThreadState_GetFrame() function now returns a strong reference
to the frame.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The PyThreadState_GetFrame() function now returns a strong reference
to the frame.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40428: Remove PyTuple_ClearFreeList() function (GH-19769)</title>
<updated>2020-04-29T00:29:20+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-29T00:29:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ae00a5a88534fd45939f86c12e038da9fa6f9ed6'/>
<id>ae00a5a88534fd45939f86c12e038da9fa6f9ed6</id>
<content type='text'>
Remove the following function from the C API:

* PyAsyncGen_ClearFreeLists()
* PyContext_ClearFreeList()
* PyDict_ClearFreeList()
* PyFloat_ClearFreeList()
* PyFrame_ClearFreeList()
* PyList_ClearFreeList()
* PySet_ClearFreeList()
* PyTuple_ClearFreeList()

Make these functions private, move them to the internal C API and
change their return type to void.

Call explicitly PyGC_Collect() to free all free lists.

Note: PySet_ClearFreeList() did nothing.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the following function from the C API:

* PyAsyncGen_ClearFreeLists()
* PyContext_ClearFreeList()
* PyDict_ClearFreeList()
* PyFloat_ClearFreeList()
* PyFrame_ClearFreeList()
* PyList_ClearFreeList()
* PySet_ClearFreeList()
* PyTuple_ClearFreeList()

Make these functions private, move them to the internal C API and
change their return type to void.

Call explicitly PyGC_Collect() to free all free lists.

Note: PySet_ClearFreeList() did nothing.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40429: PyFrame_GetCode() now returns a strong reference (GH-19773)</title>
<updated>2020-04-28T23:28:13+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-28T23:28:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8852ad4208e34825f74e24945edb5bcf055d94fe'/>
<id>8852ad4208e34825f74e24945edb5bcf055d94fe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40429: PyFrame_GetCode() result cannot be NULL (GH-19772)</title>
<updated>2020-04-28T22:56:58+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-28T22:56:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6d86a2331e6b64a2ae80c1a21f81baa5a71ac594'/>
<id>6d86a2331e6b64a2ae80c1a21f81baa5a71ac594</id>
<content type='text'>
Add frame_nslots() to factorize duplicate code.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add frame_nslots() to factorize duplicate code.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40421: Add PyFrame_GetCode() function (GH-19757)</title>
<updated>2020-04-28T17:01:31+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-28T17:01:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a42ca74fa30227e2f89a619332557cf093a937d5'/>
<id>a42ca74fa30227e2f89a619332557cf093a937d5</id>
<content type='text'>
PyFrame_GetCode(frame): return a borrowed reference to the frame
code.

Replace frame-&gt;f_code with PyFrame_GetCode(frame) in most code,
except in frameobject.c, genobject.c and ceval.c.

Also add PyFrame_GetLineNumber() to the limited C API.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyFrame_GetCode(frame): return a borrowed reference to the frame
code.

Replace frame-&gt;f_code with PyFrame_GetCode(frame) in most code,
except in frameobject.c, genobject.c and ceval.c.

Also add PyFrame_GetLineNumber() to the limited C API.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Support CO_FUTURE_BARRY_AS_BDFL in the new parser (GH-19721)</title>
<updated>2020-04-27T17:02:07+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-04-27T17:02:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2b74c835a7280840a853e3a9aaeb83758b13a458'/>
<id>2b74c835a7280840a853e3a9aaeb83758b13a458</id>
<content type='text'>
This commit also allows to pass flags to the new parser in all interfaces and fixes a bug in the parser generator that was causing to inline rules with actions, making them disappear.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit also allows to pass flags to the new parser in all interfaces and fixes a bug in the parser generator that was causing to inline rules with actions, making them disappear.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691)</title>
<updated>2020-04-24T00:43:18+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-24T00:43:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=25104949a5a60ff86c10691e184ce2ecb500159b'/>
<id>25104949a5a60ff86c10691e184ce2ecb500159b</id>
<content type='text'>
If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
"goto exit_eval_frame;" rather than "return NULL;" to exit the
function in a consistent state. For example, tstate-&gt;frame is now
reset properly.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
"goto exit_eval_frame;" rather than "return NULL;" to exit the
function in a consistent state. For example, tstate-&gt;frame is now
reset properly.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Use old compiler when compile mode is func_type (GH-19692)</title>
<updated>2020-04-23T22:42:56+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-23T22:42:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bc28805570ae3e8835a5d502ae9ab15c52449f77'/>
<id>bc28805570ae3e8835a5d502ae9ab15c52449f77</id>
<content type='text'>
This is invoked by mypy, using ast.parse(source, "&lt;func_type&gt;", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash.

https://bugs.python.org/issue40334</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is invoked by mypy, using ast.parse(source, "&lt;func_type&gt;", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash.

https://bugs.python.org/issue40334</pre>
</div>
</content>
</entry>
</feed>
