<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/ast.c, branch enum-lost-fixes</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>[3.10] bpo-43897: Reject "_" captures and top-level MatchStar in the AST validator (GH-27432) (GH-27435)</title>
<updated>2021-07-29T01:02:14+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-07-29T01:02:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=405f5c54914483607194a3ba6d4e50533d92bad1'/>
<id>405f5c54914483607194a3ba6d4e50533d92bad1</id>
<content type='text'>
(cherry picked from commit 8d0647485db5af2a0f0929d6509479ca45f1281b)


Co-authored-by: Brandt Bucher &lt;brandt@python.org&gt;

Automerge-Triggered-By: GH:brandtbucher</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 8d0647485db5af2a0f0929d6509479ca45f1281b)


Co-authored-by: Brandt Bucher &lt;brandt@python.org&gt;

Automerge-Triggered-By: GH:brandtbucher</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] bpo-43897: ast validation for pattern matching nodes (GH-27074)</title>
<updated>2021-07-10T00:16:15+00:00</updated>
<author>
<name>Batuhan Taskaya</name>
<email>batuhan@python.org</email>
</author>
<published>2021-07-10T00:16:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2f7636887e9f978352aa47b18d5f376263663ba1'/>
<id>2f7636887e9f978352aa47b18d5f376263663ba1</id>
<content type='text'>
(cherry picked from commit 8dcb7d98086888230db94a1eb07bae1b5db82bc9)

Co-authored-by: Batuhan Taskaya &lt;batuhan@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 8dcb7d98086888230db94a1eb07bae1b5db82bc9)

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:44+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2021-04-29T05:58:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.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-42609: Check recursion depth in the AST validator and optimizer (GH-23744)</title>
<updated>2021-04-25T10:38:00+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-04-25T10:38:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=face87c94e67ad9c72b9a3724f112fd76c1002b9'/>
<id>face87c94e67ad9c72b9a3724f112fd76c1002b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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:40+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-03-23T19:47:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.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: Remove the PyAST_Validate() function (GH-24911)</title>
<updated>2021-03-18T13:57:49+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-03-18T13:57:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=eec8e61992fb654d4cf58de4d727c18622b8303e'/>
<id>eec8e61992fb654d4cf58de4d727c18622b8303e</id>
<content type='text'>
Remove the PyAST_Validate() function. It is no longer possible to
build a AST object (mod_ty type) with the public C API. The function
was already excluded from the limited C API (PEP 384).

Rename PyAST_Validate() function to _PyAST_Validate(), move it to the
internal C API, and don't export it anymore (replace PyAPI_FUNC with
extern).

The function was added in bpo-12575 by
the commit 832bfe2ebd5ecfa92031cd40c8b41835ba90487f.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the PyAST_Validate() function. It is no longer possible to
build a AST object (mod_ty type) with the public C API. The function
was already excluded from the limited C API (PEP 384).

Rename PyAST_Validate() function to _PyAST_Validate(), move it to the
internal C API, and don't export it anymore (replace PyAPI_FUNC with
extern).

The function was added in bpo-12575 by
the commit 832bfe2ebd5ecfa92031cd40c8b41835ba90487f.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)</title>
<updated>2021-02-26T22:51:55+00:00</updated>
<author>
<name>Brandt Bucher</name>
<email>brandtbucher@gmail.com</email>
</author>
<published>2021-02-26T22:51:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=145bf269df3530176f6ebeab1324890ef7070bf8'/>
<id>145bf269df3530176f6ebeab1324890ef7070bf8</id>
<content type='text'>
Co-authored-by: Guido van Rossum &lt;guido@python.org&gt;
Co-authored-by: Talin &lt;viridia@gmail.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>
Co-authored-by: Guido van Rossum &lt;guido@python.org&gt;
Co-authored-by: Talin &lt;viridia@gmail.com&gt;
Co-authored-by: Pablo Galindo &lt;pablogsal@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42000: Cleanup the AST related C-code (GH-22641)</title>
<updated>2020-10-10T17:14:59+00:00</updated>
<author>
<name>Batuhan Taskaya</name>
<email>batuhanosmantaskaya@gmail.com</email>
</author>
<published>2020-10-10T17:14:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=02a1603f918b9862e164e4fd050c505b16bc9f57'/>
<id>02a1603f918b9862e164e4fd050c505b16bc9f57</id>
<content type='text'>
- Use the proper asdl sequence when creating empty arguments
- Remove reduntant casts (thanks to new typed asdl_sequences)
- Remove MarshalPrototypeVisitor and some utilities from asdl generator
- Fix the header of `Python/ast.c` (kept from pgen times)

Automerge-Triggered-By: @pablogsal</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Use the proper asdl sequence when creating empty arguments
- Remove reduntant casts (thanks to new typed asdl_sequences)
- Remove MarshalPrototypeVisitor and some utilities from asdl generator
- Fix the header of `Python/ast.c` (kept from pgen times)

Automerge-Triggered-By: @pablogsal</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41746: Add type information to asdl_seq objects (GH-22223)</title>
<updated>2020-09-16T18:42:00+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-09-16T18:42:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a5634c406767ef694df49b624adf9cfa6c0d9064'/>
<id>a5634c406767ef694df49b624adf9cfa6c0d9064</id>
<content type='text'>
* Add new capability to the PEG parser to type variable assignments. For instance:
```
       | a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a }
```

* Add new sequence types from the asdl definition (automatically generated)
* Make `asdl_seq` type a generic aliasing pointer type.
* Create a new `asdl_generic_seq` for the generic case using `void*`.
* The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed.
* New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences.
* Changes all possible `asdl_seq` types to use specific versions everywhere.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add new capability to the PEG parser to type variable assignments. For instance:
```
       | a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a }
```

* Add new sequence types from the asdl definition (automatically generated)
* Make `asdl_seq` type a generic aliasing pointer type.
* Create a new `asdl_generic_seq` for the generic case using `void*`.
* The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed.
* New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences.
* Changes all possible `asdl_seq` types to use specific versions everywhere.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40939: Remove the old parser (Part 2) (GH-21005)</title>
<updated>2020-06-20T18:07:25+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-06-20T18:07:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=314858e2763e76e77029ea0b691d749c32939087'/>
<id>314858e2763e76e77029ea0b691d749c32939087</id>
<content type='text'>
Remove some remaining files and Makefile targets for the old parser</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove some remaining files and Makefile targets for the old parser</pre>
</div>
</content>
</entry>
</feed>
