Re:Ask HN: Examples of meta programming or AST-hacking in Py...
by gjenks on Saturday January 30, 2016 @04:05PM
(#11003743)
I wrote a Python module called PyPatt that implements Pythonic Pattern Matching as you'd find in functional languages. There's both a function-based and macro-based version. The macro version is deprecated but was used for a while.
Docs: http://www.grantjenks.com/docs/pypatt-python-pattern-matchin... Source: https://github.com/grantjenks/pypatt_python_pattern_matching...