Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wrote a (batshit crazy) Python library to do exactly what you're talking about. It converts Python ASTs into S-expressions (just Python lists) and allows you to apply 'macros' to methods just by decorators.


I guess it would've been helpful to actually link the project! https://github.com/daeken/transformana




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: