This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BTaskaya
Recipients BTaskaya, cool-RR, pablogsal
Date 2020-02-21.19:11:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582312278.22.0.513070940083.issue39715@roundup.psfhosted.org>
In-reply-to
Content
What kind of repr do you have in your mind? If the repr you are thinking contains field information, it would be no-go. Fields of AST objects can contain other objects and fields of that objects can contain more objects (this goes up to the recursion limit where the child can not be no longer calculated). This is why we have ast.dump instead. For small debuggings there are 3rd party libraries (e.g: asteria) which adds __repr__ on runtime for working on nodes, but on a real application this can cause more problem then it benefits.
History
Date User Action Args
2020-02-21 19:11:18BTaskayasetrecipients: + BTaskaya, cool-RR, pablogsal
2020-02-21 19:11:18BTaskayasetmessageid: <1582312278.22.0.513070940083.issue39715@roundup.psfhosted.org>
2020-02-21 19:11:18BTaskayalinkissue39715 messages
2020-02-21 19:11:17BTaskayacreate