Message76348
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@bugs.python.org> wrote:
>
> David Turner <novalis@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@bugs.python.org>
> <http://bugs.python.org/issue4327>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2008-11-24 17:55:23 | jhylton | set | recipients:
+ jhylton, novalis_dt |
2008-11-24 17:55:22 | jhylton | link | issue4327 messages |
2008-11-24 17:55:22 | jhylton | create | |
|