[Python-Dev] 2.4a2, and @decorators (original) (raw)

Jim Fulton jim at zope.com
Tue Aug 3 12:43:14 CEST 2004


James Y Knight wrote: ...

Things someone might want to do, ordered roughly from most reasonable to least reasonable ;) @foo().bar() @foo or bar @mydecorators['foo'] @lambda f: foo(f) or bar(f)

Why disallow these forms? It seems quite difficult, especially, to explain why the first one does not, or should not, work.

+1

-- Jim Fulton mailto:jim at zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org



More information about the Python-Dev mailing list