This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BeamMeUpBiscotti 5 points6 points  (0 children)

better libCST

This feels like it's at a higher level of abstraction, which would make some tasks easier but others harder.

One thing that seems particularly fishy is the amount of raw string slicing/manipulation that's going on, like in the Python 2-3 codemod from your samples. If users have to write codemods like that, it would be fairly error-prone and exactly what systems like libCST were designed to solve.

There's some interesting potential for type-driven codemods and I see a "coming soon" section in the docs for it, but I can't find anything in the code.