[issue16795] Patch: some changes to AST to make it more useful for static language analysis

Sven Brauch report at bugs.python.org
Sun Jan 6 00:24:10 CET 2013


Sven Brauch added the comment:

While writing tests, I noticed that the additional fields (lineno, col_offset for vararg, kwarg, and other arguments) currently are mandatory. Is that a problem?
It doesn't seem trivial to change that, since apparently only attributes (not fields) can be optional, but those are not allowed by the syntax of python.asdl at this point.
In case the fields need to be mandatory, what would be the correct approach to achieve that?

Thanks.

----------

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


More information about the Python-bugs-list mailing list