FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

WIP bpo-43892: Make match patterns explicit in AST by ncoghlan · Pull Request #25521 · python/cpython · GitHub

Repository navigation

WIP bpo-43892: Make match patterns explicit in AST - #25521

Closed
ncoghlan wants to merge 1 commit into
python:masterfrom
ncoghlan:bpo-43892-explicit-pattern-matching-ast
Closed

ncoghlan wants to merge 1 commit into
python:masterfrom
ncoghlan:bpo-43892-explicit-pattern-matching-ast

Conversation

ncoghlan commented Apr 22, 2021 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor
  • Separates "pattern" and "expr" nodes in AST
  • AST node names are derived from the AST proposed
    in PEP 642, except that MatchValue always matches
    by equality and a separate MatchConstant node is
    defined for matching by identity
  • Grammar definition has been updated to emit the
    newly defined AST nodes
  • TODO: update code generator to consume new nodes
  • TODO: update AST validator to consume new nodes
  • TODO: update AST unparser to consume new nodes

https://bugs.python.org/issue43892

* Separates "pattern" and "expr" nodes in AST
* AST node names are derived from the AST proposed
  in PEP 642, except that MatchValue always matches
  by equality and a separate MatchConstant node is
  defined for matching by identity
* Grammar definition has been updated to emit the
  newly defined AST nodes
* TODO: update code generator to consume new nodes
* TODO: update AST validator to consume new nodes
* TODO: update AST unparser to consume new nodes

Copy link
Copy Markdown
Contributor Author

Whoops, didn't mean to create this yet.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL