Focused on Web Development, ReactJS, Angular, JavaScript, PHP, Database Design, Ionic, Jquery and MySQL
I can get AST without comments using
import ast module = ast.parse(open('/path/to/module.py').read())
Could you show an example of getting AST with preserved comments (and whitespace)?
No comments:
Post a Comment