Re: [Twisted-Python] Using decorator syntax in Twisted

2011-12-01 Thread Itamar Turner-Trauring
> Can we start with a limited experimental usage? Some new code can be > written this way, and we'll see if there's any negative feedback > following the next release. > > I don't want existing code to get ported to the new syntax just because > it's possible now. Sure, just because it's possible

Re: [Twisted-Python] Using decorator syntax in Twisted

2011-12-01 Thread exarkun
On 03:24 pm, ita...@itamarst.org wrote: >Until now we haven't AFAIK used decorator syntax, but I think it's time >we start to. In places where we were already using decorators without >the special syntax, that is. > >Consider: > >def foo(cls, arg): ># lalalal >foo = classmethod(fo

[Twisted-Python] Using decorator syntax in Twisted

2011-12-01 Thread Itamar Turner-Trauring
Until now we haven't AFAIK used decorator syntax, but I think it's time we start to. In places where we were already using decorators without the special syntax, that is. Consider: def foo(cls, arg): # lalalal foo = classmethod(foo) One has to type "foo" three times (a potential