PEP 318 decorators are not Decorators

Arien Malec arien_malec at yahoo.com.REMOVE
Fri Aug 13 12:38:32 EDT 2004


"Daniel Dittmar" <daniel.dittmar at sap.com> wrote in news:cfhsri$a1q$1
@news1.wdf.sap-ag.de:

> Arien Malec wrote:
>> decorator. One of the issues is that the Decorator pattern is more
> 
> The term decorator as used in the current discussion comes from compiler
> writing. You have a syntax 'tree' which gets 'decorated' with additional
> attributes.

1) That's not mentioned in PEP 318
2) That's in disagreement with
http://www.python.org/moin/PythonDecorators
3) Won't most programmers think GoF decorators before compiler syntax tree 
decorators?

Arien



More information about the Python-list mailing list