[issue4327] Patch: simplify complex constant assignment statements

Jeremy Hylton report at bugs.python.org
Mon Nov 24 18:55:22 CET 2008


Jeremy Hylton <jeremy at alum.mit.edu> added the comment:

I haven't thought about the code in a while, but what code that
modifies the AST are we worried about?  There are lots of
modifications in ast.c, since it is being created there.  The case we
really care about is sequences, where we want to modify the sequence.
The creation goes through macros like asdl_seq_SET(), so we could just
change the macro.  What are other cases we need to worry about?

Jeremy

On Mon, Nov 24, 2008 at 12:50 PM, David Turner <report at bugs.python.org> wrote:
>
> David Turner <novalis at novalis.org> added the comment:
>
> Sure, but that's an even bigger change.  Every piece of code which
> modifies the AST would now also have to modify parent pointers.  Having
> the pointers would make many things easier, but I didn't want to make a
> very invasive change like that without thinking it through thoroughly.
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue4327>
> _______________________________________
>

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


More information about the Python-bugs-list mailing list