[Cython] Scope resolution in a Visitor

Romain Guillebert romain.py at gmail.com
Mon May 23 20:33:34 CEST 2011


Hi

I'm doing the PyPy backend for Cython Summer of Code project and I would
like to know if there is a way of getting the AST Node responsible for
the declaration of a variable.

For example :

def func():
    def func():
        pass

    func()

In the situation where I'm currently traversing the function call, I
would like to get the function declaration node.
Is there already something to do that ?

Cheers
Romain


More information about the cython-devel mailing list