"Structural pattern matching" for Python, part 1
"Structural pattern matching" for Python, part 1
Posted Aug 6, 2020 1:23 UTC (Thu) by pj (subscriber, #4506)In reply to: "Structural pattern matching" for Python, part 1 by ibukanov
Parent article: "Structural pattern matching" for Python, part 1
Python 3 has
a, b, *c = 1, 2, 3, 4, 5that yields (I think)
a=1, b=2, c=(2,3,4,5)that is a kind of 'rest of it', but does nothing with dicts at all.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
