Quick idea: this might integrate well with PEP 484, or with the (still speculative) multiple dispatch that Lukas Lang wants to write.

On Apr 7, 2015 8:46 AM, "Paul Moore" <p.f.moore@gmail.com> wrote:
On 7 April 2015 at 15:54, Szymon Py┼╝alski <szymon@pythonista.net> wrote:
> I was trying to google if there were some attempts to add pattern
> matching feature (as seen in e.g. haskell) to Python. I couldn't however
> find anything. Were there any proposals for a feature like this?

>From a quick look:

https://pypi.python.org/pypi/patterns
https://pypi.python.org/pypi/py-pattern-matching

I'm not sure if either of these is the sort of thing you're looking for.

Paul
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/