On 11/22/05, Brett Cannon <[EMAIL PROTECTED]> 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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com