[Python-Dev] AST manipulation and source code generation

Jeremy Hylton jhylton at gmail.com
Thu May 26 15:28:37 CEST 2005


On 5/26/05, Chad Whitacre <chad at zetaweb.com> wrote:
> chad: Hmmm ... I don't follow python-dev closely but hasn't there been
> resistance to macros in Python? Are we saying macros may be a good idea
> after all?
> 
> ?!ng: resistance -> Yes.
> ?!ng: good idea -> Not really.  AST transformations are useful for
> experimenting with the language, but i don't think there is much
> enthusiasm for making these transformations a normal part of the way
> most programs are written.

Right.  We fear macros and prefer to suffer getattr hooks,
descriptors, and decorators <wink>.

Jeremy


More information about the Python-Dev mailing list