mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)
Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Talin <viridia@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
This commit is contained in:
parent
cc02b4f2e8
commit
145bf269df
43 changed files with 10867 additions and 2607 deletions
|
@ -273,6 +273,7 @@ class AST_Tests(unittest.TestCase):
|
|||
self._assertTrueorder(child, first_pos)
|
||||
elif value is not None:
|
||||
self._assertTrueorder(value, parent_pos)
|
||||
self.assertEqual(ast_node._fields, ast_node.__match_args__)
|
||||
|
||||
def test_AST_objects(self):
|
||||
x = ast.AST()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue