Re:Pattern matching accepted for Python
by pfalcon on Wednesday February 10, 2021 @04:54AM
(#26087316)
"f(x)" and "|" inside a regular expression mean something different. Similarly here, pattern matching has its own sub-language (a DSL).
[ Parent
| on HN ]
Re:Pattern matching accepted for Python
by toxik on Wednesday February 10, 2021 @05:23AM
(#26087485)
Coincidentally, regular expressions are not part of the Python syntax. They're just string literals.
Re:Pattern matching accepted for Python
by craftinator on Wednesday February 10, 2021 @08:30PM
(#26097171)
Are you being intentionally ironic here, or do you not know that regex DSL is written only inside of strings in python, not within the Python's syntax?