Author loewis
Recipients georg.brandl, loewis
Date 2008-03-29.14:49:17
SpamBayes Score 0.281521
Marked as misclassified No
Message-id <>
In-reply-to <>
> 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?
Date User Action Args
2008-03-29 14:49:18loewissetspambayes_score: 0.281521 -> 0.281521
recipients: + loewis, georg.brandl
2008-03-29 14:49:17loewislinkissue2505 messages
2008-03-29 14:49:17loewiscreate