[Python-ideas] AST Transformation Hooks for Domain Specific Languages

Terry Reedy tjreedy at udel.edu
Sun Apr 10 00:13:13 CEST 2011

On 4/9/2011 5:37 PM, Arnaud Delobelle wrote:
> On 9 Apr 2011, at 22:10, Terry Reedy wrote:
>> On 4/9/2011 2:06 AM, Eric Snow wrote:
>>> My understanding is that the AST transformation is done at
>>> compile-time, while the decorator happens at run-time.
>> Nope. Decorator call happens just after compilation, but before
>> calls. A decorator could compile a new code object and replace the
>> original.
> I don't understand what you are saying.

I was thinking Eric meant function call time, but that is probably 
wrong, so ignore my comment.

Terry Jan Reedy

More information about the Python-ideas mailing list