program-transformation

using ast module to transform random constants in Python source

using ast module to transform random constants in Python source Question: I’m interested in writing a program that uses Python’s built-in AST module to randomly modify constants in arbitrary Python source. This transformation will likely involve a traversal of the abstract syntax tree representation using operations defined by the AST module. The module offers two …

Total answers: 1