[Python-Dev] a Python interface for the AST (WAS: DRAFT: python-dev...)

Neal Norwitz nnorwitz at gmail.com
Wed Nov 23 02:48:33 CET 2005


On 11/22/05, Brett Cannon <bcannon at gmail.com> wrote:
>
> But if I had my way I think that having all AST objects be PyObjects
> and then providing support for all three ways of getting access to the
> AST (command-line, sys iterable, function for specific code object)
> would be fantastic.

There needs to be a function that takes a filename (or string of code)
and returns an AST.  Hmm, it would be nice to give a function a module
name (like from an import statement) and have Python resolve it using
the normal sys.path iteration.

n


More information about the Python-Dev mailing list