Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgenerate python source code #33
Open
Comments
|
The ast doesn't preserve the comments nor the fine code structure so you can't preserve the exact code structure. You could traverse the ast to create some code which worked the same though. There isn't a way of doing this right now, but it wouldn't be too tricky to implement. Why do you want to do this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


given an ast, how does one generate the corresponding python source code
thank you