[issue3152] ast module docs document private attribute

Georg Brandl report at bugs.python.org
Fri Jun 20 22:41:32 CEST 2008


Georg Brandl <georg at python.org> added the comment:

I disagree. The AST classes are auto-generated, the leading underscore
of _fields is there to avoid clashes with field names from the AST types.

This is similar to
http://docs.python.org/dev/library/collections#collections.somenamedtuple._fields
which shouldn't be renamed, but isn't private either.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3152>
_______________________________________


More information about the Python-bugs-list mailing list