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

2005-11-23 Thread Brett Cannon
On 11/23/05, Greg Ewing [EMAIL PROTECTED] wrote: Brett Cannon wrote: There are two problems to this topic; how to get the AST structs into Python objects and how to allow Python code to modify the AST before bytecode emission I'm astounded to hear that the AST isn't made from Python

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

2005-11-22 Thread Neal Norwitz
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

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

2005-11-22 Thread Brett Cannon
On 11/22/05, Neal Norwitz [EMAIL PROTECTED] wrote: 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

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

2005-11-22 Thread Phillip J. Eby
At 06:32 PM 11/22/2005 -0800, Brett Cannon wrote: 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. Yep, import path - filename path would be cool. Zipped and frozen modules don't have