<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cpython.git/Python/Python-ast.c, branch v3.10.6</title>
<subtitle>https://github.com/python/cpython.git</subtitle>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/'/>
<entry>
<title>bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467)</title>
<updated>2022-01-07T22:30:18Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-01-07T22:30:18Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=bea3f42bb7c360921f864949ef7472a7ecb02cd3'/>
<id>bea3f42bb7c360921f864949ef7472a7ecb02cd3</id>
<content type='text'>
Automerge-Triggered-By: GH:isidentical
(cherry picked from commit d382f7ee0b98e4ab6ade9384268f25c06be462ad)

Co-authored-by: Batuhan Taskaya &lt;batuhan@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Automerge-Triggered-By: GH:isidentical
(cherry picked from commit d382f7ee0b98e4ab6ade9384268f25c06be462ad)

Co-authored-by: Batuhan Taskaya &lt;batuhan@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-11105: Do not crash when compiling recursive ASTs (GH-20594)</title>
<updated>2021-06-03T20:27:00Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-06-03T20:27:00Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=976598d36bd180024c5f0edf1f7ec0f0b436380f'/>
<id>976598d36bd180024c5f0edf1f7ec0f0b436380f</id>
<content type='text'>
When compiling an AST object with a direct / indirect reference
cycles, on the conversion phase because of exceeding amount of
calls, a segfault was raised. This patch adds recursion guards to
places for preventing user inputs to not to crash AST but instead
raise a RecursionError.
(cherry picked from commit f3491242e41933aa9529add7102edb68b80a25e9)

Co-authored-by: Batuhan Taskaya &lt;batuhan@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When compiling an AST object with a direct / indirect reference
cycles, on the conversion phase because of exceeding amount of
calls, a segfault was raised. This patch adds recursion guards to
places for preventing user inputs to not to crash AST but instead
raise a RecursionError.
(cherry picked from commit f3491242e41933aa9529add7102edb68b80a25e9)

Co-authored-by: Batuhan Taskaya &lt;batuhan@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43892: Make match patterns explicit in the AST (GH-25585)</title>
<updated>2021-04-29T05:58:44Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2021-04-29T05:58:44Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=1e7b858575d0ad782939f86aae4a2fa1c29e9f14'/>
<id>1e7b858575d0ad782939f86aae4a2fa1c29e9f14</id>
<content type='text'>
Co-authored-by: Brandt Bucher &lt;brandtbucher@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Brandt Bucher &lt;brandtbucher@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43798: Add source location attributes to alias (GH-25324)</title>
<updated>2021-04-10T20:56:28Z</updated>
<author>
<name>Matthew Suozzo</name>
<email>msuozzo@google.com</email>
</author>
<published>2021-04-10T20:56:28Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=75a06f067bd0a2687312e5f8e78f9075be76ad3a'/>
<id>75a06f067bd0a2687312e5f8e78f9075be76ad3a</id>
<content type='text'>
* Add source location attributes to alias.
* Move alias star construction to pegen helper.

Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@users.noreply.github.com&gt;
Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add source location attributes to alias.
* Move alias star construction to pegen helper.

Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@users.noreply.github.com&gt;
Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43244: Rename pycore_ast.h functions to _PyAST_xxx() (GH-25252)</title>
<updated>2021-04-07T19:34:22Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-04-07T19:34:22Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=d27f8d2e07d31670af469ef387a37bc9e96ea8ad'/>
<id>d27f8d2e07d31670af469ef387a37bc9e96ea8ad</id>
<content type='text'>
Rename AST functions of pycore_ast.h to use the "_PyAST_" prefix.
Remove macros creating aliases without prefix. For example, Module()
becomes _PyAST_Module(). Update Grammar/python.gram to use
_PyAST_xxx() functions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename AST functions of pycore_ast.h to use the "_PyAST_" prefix.
Remove macros creating aliases without prefix. For example, Module()
becomes _PyAST_Module(). Update Grammar/python.gram to use
_PyAST_xxx() functions.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243)</title>
<updated>2021-04-07T11:01:09Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-04-07T11:01:09Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=d36d6a9c1808e87628ebaa855d4bec80130189f4'/>
<id>d36d6a9c1808e87628ebaa855d4bec80130189f4</id>
<content type='text'>
* pycore_ast.h no longer defines the Yield macro.
* Fix a compiler warning on Windows: "warning C4005: 'Yield': macro
  redefinition".
* Python-ast.c now defines directly functions with their real
  _Py_xxx() name, rather than xxx().
* Remove "#undef Yield" in C files including pycore_ast.h.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* pycore_ast.h no longer defines the Yield macro.
* Fix a compiler warning on Windows: "warning C4005: 'Yield': macro
  redefinition".
* Python-ast.c now defines directly functions with their real
  _Py_xxx() name, rather than xxx().
* Remove "#undef Yield" in C files including pycore_ast.h.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43244: Remove the pyarena.h header (GH-25007)</title>
<updated>2021-03-24T01:23:01Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-03-24T01:23:01Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=8370e07e1e5b626e78ddc7aadbfaf248976c4454'/>
<id>8370e07e1e5b626e78ddc7aadbfaf248976c4454</id>
<content type='text'>
Remove the pyarena.h header file with functions:

* PyArena_New()
* PyArena_Free()
* PyArena_Malloc()
* PyArena_AddPyObject()

These functions were undocumented, excluded from the limited C API,
and were only used internally by the compiler.

Add pycore_pyarena.h header. Rename functions:

* PyArena_New() =&gt; _PyArena_New()
* PyArena_Free() =&gt; _PyArena_Free()
* PyArena_Malloc() =&gt; _PyArena_Malloc()
* PyArena_AddPyObject() =&gt; _PyArena_AddPyObject()</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the pyarena.h header file with functions:

* PyArena_New()
* PyArena_Free()
* PyArena_Malloc()
* PyArena_AddPyObject()

These functions were undocumented, excluded from the limited C API,
and were only used internally by the compiler.

Add pycore_pyarena.h header. Rename functions:

* PyArena_New() =&gt; _PyArena_New()
* PyArena_Free() =&gt; _PyArena_Free()
* PyArena_Malloc() =&gt; _PyArena_Malloc()
* PyArena_AddPyObject() =&gt; _PyArena_AddPyObject()</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43244: Remove ast.h, asdl.h, Python-ast.h headers (GH-24933)</title>
<updated>2021-03-23T19:47:40Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-03-23T19:47:40Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=94faa0724f8cbae6867c491c8e465e35f4fdbfbb'/>
<id>94faa0724f8cbae6867c491c8e465e35f4fdbfbb</id>
<content type='text'>
These functions were undocumented and excluded from the limited C
API.

Most names defined by these header files were not prefixed by "Py"
and so could create names conflicts. For example, Python-ast.h
defined a "Yield" macro which was conflict with the "Yield" name used
by the Windows &lt;winbase.h&gt; header.

Use the Python ast module instead.

* Move Include/asdl.h to Include/internal/pycore_asdl.h.
* Move Include/Python-ast.h to Include/internal/pycore_ast.h.
* Remove ast.h header file.
* pycore_symtable.h no longer includes Python-ast.h.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These functions were undocumented and excluded from the limited C
API.

Most names defined by these header files were not prefixed by "Py"
and so could create names conflicts. For example, Python-ast.h
defined a "Yield" macro which was conflict with the "Yield" name used
by the Windows &lt;winbase.h&gt; header.

Use the Python ast module instead.

* Move Include/asdl.h to Include/internal/pycore_asdl.h.
* Move Include/Python-ast.h to Include/internal/pycore_ast.h.
* Remove ast.h header file.
* pycore_symtable.h no longer includes Python-ast.h.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43244: Fix test_peg_generator for PyAST_Validate() (GH-24912)</title>
<updated>2021-03-18T01:46:06Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-03-18T01:46:06Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=e0bf70d08c4a4a68782702e747e6bf7670667591'/>
<id>e0bf70d08c4a4a68782702e747e6bf7670667591</id>
<content type='text'>
test_peg_generator now defines _Py_TEST_PEGEN macro when building C
code to not call PyAST_Validate() in Parser/pegen.c. Moreover, it
defines Py_BUILD_CORE_MODULE macro to get access to the internal
C API.

Remove "global_ast_state" from Python-ast.c when it's built by
test_peg_generator: always get the AST state from the current interpreter.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test_peg_generator now defines _Py_TEST_PEGEN macro when building C
code to not call PyAST_Validate() in Parser/pegen.c. Moreover, it
defines Py_BUILD_CORE_MODULE macro to get access to the internal
C API.

Remove "global_ast_state" from Python-ast.c when it's built by
test_peg_generator: always get the AST state from the current interpreter.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43244: Rename pycore_ast.h to pycore_ast_state.h (GH-24907)</title>
<updated>2021-03-17T22:11:03Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-03-17T22:11:03Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=b4536e1c6abe4c6219177a89e16575d05ea22f64'/>
<id>b4536e1c6abe4c6219177a89e16575d05ea22f64</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
