On 11/24/2020 4:40 PM, Marco Sulla wrote:
I have a question about pattern matching: is it used often
in math language as Mathematica?


Yes, pattern matching is absolutely fundamental to Mathematica.
See the `MatchQ` function:
https://reference.wolfram.com/language/ref/MatchQ.html
This works brilliantly.

I would love for Python to rely on a function to
test for matches. To see what match-based actions
could then look like, take a look at `Replace`:
https://reference.wolfram.com/language/ref/Replace.html

fwiw,
Alan Isaac
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/VB4Y7CDVKGVNJNRG2NYHMFIJZAEO7OHW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to