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?
Not everyone is familiar with Haskell. Can you provide an example of how this would work (in pseudocode, perhaps)?