da-woods
8d7089f0a0
gh-94499 Add test for private name mangling in class pattern matching ( #94500 )
...
The current status quo is that private attribute names are not
mangled when a class is matched. I've added a test to
document/legimize this behaviour.
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2022-07-13 09:13:10 -07:00
Pablo Galindo Salgado
53a8b17895
gh-93671: Avoid exponential backtracking in deeply nested sequence patterns in match statements (GH-93680)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-06-10 17:56:45 +02:00
Dong-hee Na
e6497fe698
bpo-45045: Optimize mapping patterns of structural pattern matching (GH-28043)
2021-08-30 19:02:32 +09:00
Brandt Bucher
38ddc8beb3
bpo-44600: Refactor new tracing tests (GH-27396)
2021-07-27 17:51:49 -07:00
Charles Burkland
4214f470f0
bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346)
2021-07-25 16:42:07 -07:00
Jack DeVries
2693132292
bpo-44589: raise a SyntaxError when mapping patterns have duplicate literal keys (GH-27131)
2021-07-14 17:38:42 -07:00
Brandt Bucher
ca2009d72a
bpo-43977: Properly update the tp_flags of existing subclasses when their parents are registered (GH-26864)
2021-06-25 08:20:43 -07:00
Brandt Bucher
c106cf31f8
Reorganize the pattern matching suite (GH-26661)
2021-06-18 10:18:14 -07:00
Mark Shannon
33ec88ac81
bpo-43977: Make sure that tp_flags for pattern matching are inherited correctly. (GH-25813)
2021-05-03 00:38:22 +01:00
Brandt Bucher
0ad1e0384c
bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)
2021-05-02 13:02:10 -07:00
Brandt Bucher
dbe60ee09d
bpo-43892: Validate the first term of complex literal value patterns (GH-25735)
2021-04-29 17:19:28 -07:00
Nick Coghlan
1e7b858575
bpo-43892: Make match patterns explicit in the AST (GH-25585)
...
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2021-04-28 22:58:44 -07:00
Brandt Bucher
f84d5a1136
bpo-42128: __match_args__ can't be a list anymore (GH-25203)
2021-04-05 19:17:08 -07:00
Brandt Bucher
145bf269df
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>
2021-02-26 14:51:55 -08:00