|
|
Log in / Subscribe / Register

An overview of structural pattern matching for Python

An overview of structural pattern matching for Python

Posted May 5, 2022 15:22 UTC (Thu) by kokada (subscriber, #92849)
In reply to: An overview of structural pattern matching for Python by jezuch
Parent article: An overview of structural pattern matching for Python

Well, from the looks of the text it does looks to me that `match` in Python s also context-dependent. The text even gave an example on how you could have both a variable called `match` and a `match` statement one after another (with the amusing resulting `match match:`).


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.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds