[issue39715] Implement __repr__ methods for AST classes
Ram Rachum
report at bugs.python.org
Fri Feb 21 13:05:03 EST 2020
New submission from Ram Rachum <ram at rachum.com>:
I was playing with the `ast` library today, and it's frustrating to see objects like these:
[<_ast.Import object at 0x00000000033FB048>,
<_ast.Import object at 0x00000000033FB0F0>,
<_ast.ImportFrom object at 0x00000000033FB160>,
<_ast.Import object at 0x00000000033FB1D0>,
<_ast.Assign object at 0x00000000033FB240>,
<_ast.If object at 0x00000000033FB630>]
A little bit more information about each object in the `__repr__` would make this module much easier to work with.
----------
components: Library (Lib)
messages: 362419
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Implement __repr__ methods for AST classes
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39715>
_______________________________________
More information about the Python-bugs-list
mailing list