[Python-Dev] Call for defense of @decorators
ronaldoussoren at mac.com
Thu Aug 5 22:16:16 CEST 2004
On 5-aug-04, at 22:11, Neil Schemenauer wrote:
> On Thu, Aug 05, 2004 at 09:54:17PM +0200, Ronald Oussoren wrote:
>> Not every method is a property accessor. The metaclass does calculate
>> default signature (all arguments are objects and the result is an
>> object) when it doesn't have better information (such as the signature
>> of a method with the same name in a superclass).
> Sorry I wasn't clearer. What I meant was if we have a nice syntax
> for setting function attributes then the metaclass to transform the
> functions just like a decorator could.
And how would that solve this:
More information about the Python-Dev