[Python-Dev] Re: metaclass and author are already decorators (original) (raw)
Phillip J. Eby pje at telecommunity.com
Sat Aug 21 23:21:28 CEST 2004
- Previous message: [Python-Dev] Re: __metaclass__ and __author__ are already decorators
- Next message: [Python-Dev] Re: __metaclass__ and __author__ are already decorators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 05:15 PM 8/21/04 -0400, Paul Morrow wrote:
Christophe Cavalaria wrote:
can it be ? There's also the fact that it can't handle named parameters like a regular function call. You can't write that : def foo(): decoration = (1,1,param=True) As far as I know, we can't do that with the current decorator proposals either.
@decoration(1,1,param=True) def foo(whatever): pass
- Previous message: [Python-Dev] Re: __metaclass__ and __author__ are already decorators
- Next message: [Python-Dev] Re: __metaclass__ and __author__ are already decorators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]