serge-sans-paille / beniget

Extract semantic information about static Python code
BSD 3-Clause "New" or "Revised" License
69 stars 21 forks source link

Add support for the match statement (python 3.10) #81

Closed tristanlatr closed 5 months ago

tristanlatr commented 1 year ago

All the bindings are not represented as Name[Store] in the ast (But by MatchAs node etc), so beniget needs special handling for these. It’s more or less the same situation as the except handler not having a store name for the exception. But it this case gast transforms it to actually have a Store name…

see for the specs: https://peps.python.org/pep-0622/

tristanlatr commented 10 months ago

I’m working on a patch.