[Python-ideas] Decorator syntax restriction

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Oct 3 03:40:18 CEST 2009

Paul Moore wrote:

> @(a['b'].fns[1])(1,2,{3,4})
> def something():
> I contend that's clearly "line noise".

But there's nothing to stop you from writing

   f = (a['b'].fns[1])(1,2,{3,4})
   def something():

If the first version is unreadable, the second one isn't going
to be significantly better.


More information about the Python-ideas mailing list