Decorator and Metaclasses Documentation

bruno modulix onurb at xiludom.gro
Mon Aug 22 03:37:55 EDT 2005


Mike C. Fletcher wrote:
(snip)
> Though the don't go into extreme detail on decorators (they are
> basically syntactic sugar for a particular type of descriptor).
> 
Err... Could you elaborate on this ? Decorators are syntactic sugar for
function wrapping, while descriptors are a 'protocol' to hook into
attribute lookup, so I don't really see how one can describe the first
in terms of the second...

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list