A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-August/148963.html below:

[Python-Dev] how to dump cst

[Python-Dev] how to dump cstyang chen shanchuan04 at gmail.com
Sat Aug 26 03:53:48 EDT 2017
Hello, everyone.


I'm learning python source code, I used to print info when I debug code,
but it's not convenient. I want to print CST, AST, ByteCode with iPython,
wirte some code, then print it's CST、AST、 BYTECODE, and then to read the
source code.

But, I can't dump the CST tree which will transform to AST, I know I can
print CST tree by modifying python source code, but how to dump the CST
tree in iPython just like dumping AST with ast package.

1. get AST with ast package2. get ByteCode with dis package

3. but how get cst??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170826/a621287f/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4