News for hackers. Stuff that matters.
Re:Abstract Syntax Tree for Patching Code and Assessing Code... by grdvnl on Monday June 07, 2021 @02:59AM (#27419829)
I have done something similar using https://pybowler.io/. This library wraps the LibCST library and abstracts away some of the refactoring operations into nice wrapper functions.
Re:Abstract Syntax Tree for Patching Code and Assessing Code... by codethief on Monday June 07, 2021 @06:55AM (#27421098)
Are you sure it wraps the LibCST library (https://github.com/Instagram/LibCST)?

> Bowler builds on top of the Concrete Syntax Tree (CST) provided by lib2to3 in the standard library.

Re:Abstract Syntax Tree for Patching Code and Assessing Code... by grdvnl on Monday June 07, 2021 @11:22AM (#27423635)
My bad. I don't know why I remember it as wrapping around LibCST.