On Sun, Mar 13, 2011 at 6:39 AM, Samuel Ytterbrink <nep...@gmail.com> wrote:
> Hi
> i just wanted to show you a link and ask if this was a design issue or if
> you just didn't know that there are a Visitor class for the as t already.
> http://docs.python.org/library/ast.html#ast.NodeTransformer
Yes, I know about this --- if you look at the source code, you can
see, that the implementation is so trivial, that we decided with
Mateusz to simply reimplement it, so that it can do exactly what we
want, and so that it's clear how it works (so that people don't have
to dig the source code of NodeTransformer).
But if you think you can simplify the code by using it, go ahead, I
think it's not a big deal.
Ondrej