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

There's redbaron, which provides a full syntax tree, and is designed for making such changes: https://github.com/PyCQA/redbaron


Unfortunately, redbaron targets Python 2, which doesn't have the f-strings added in Python 3.6. The project looks quite nifty otherwise.


That looks very cool! Thanks for the pointer.




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

Search: