This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients georg.brandl, loewis
Date 2008-03-29.14:49:17
SpamBayes Score 0.2815214
Marked as misclassified No
Message-id <47EE56EB.5000700@v.loewis.de>
In-reply-to <1206798035.95.0.985686119442.issue2505@psf.upfronthosting.co.za>
Content
> On second thought, restricting node attributes may prevent custom AST
> processing tools from adding useful information themselves...

Indeed. If anything is to be checked, it should be whether the child
nodes or attributes have the right types. However, that should rather
be done in a recursive check function on _mod, which then would also
check whether all necessary fields have been set. Or, such checks
could be delayed until actual compilation of the tree is attempted
(i.e. conversion to the C AST structures).

As for being able to pass constructor arguments: I'd expect them
to be positional arguments, not keyword arguments - anybody creating
AST nodes would normally have Python.asdl open, no?
History
Date User Action Args
2008-03-29 14:49:18loewissetspambayes_score: 0.281521 -> 0.2815214
recipients: + loewis, georg.brandl
2008-03-29 14:49:17loewislinkissue2505 messages
2008-03-29 14:49:17loewiscreate