[issue38765] `ast.AST._attributes` is used by `ast.dump()` but not documented

Brett Cannon report at bugs.python.org
Wed Nov 20 12:15:04 EST 2019


Brett Cannon <brett at python.org> added the comment:

It's also possible the leading underscore was used to prevent name collisions.

Unfortunately I don't know the history of _attributes, so without someone digging through the git history or personally knowing the reason behind it I don't know whether we should be exposing it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38765>
_______________________________________


More information about the Python-bugs-list mailing list