[Python-Dev] C AST to Python discussion
Nick Coghlan
ncoghlan at gmail.com
Wed Feb 15 11:29:45 CET 2006
More information about the Python-Dev mailing list
Wed Feb 15 11:29:45 CET 2006
- Previous message: [Python-Dev] C AST to Python discussion
- Next message: [Python-Dev] C AST to Python discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Wouters wrote: > On Wed, Feb 15, 2006 at 07:28:36PM +1000, Nick Coghlan wrote: > >> On the 'unusable AST' front, if AST transformation code creates illegal >> output, then the main thing is to raise an exception complaining about >> what's wrong with it. I believe that may need a change to the compiler >> whether the modified AST was serialised or not. > > I would personally prefer the AST validation to be a separate part of the > compiler. It means the one or the other can be out of sync, but it also > means it can be accessed directly (validating AST before sending it to the > compiler) and the compiler (or CFG generator, or something between AST and > CFG) can decide not to validate internally generated AST for non-debug > builds, for instance. > > I like both those reasons. Aye, I was thinking much the same thing. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
- Previous message: [Python-Dev] C AST to Python discussion
- Next message: [Python-Dev] C AST to Python discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list