Batuhan Taskaya <batuhanosmantask...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39715>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to