[Python-ideas] Decorator syntax restriction
Nick Coghlan
ncoghlan at gmail.com
Fri Oct 2 17:39:01 CEST 2009
Paul Moore wrote:
> 2009/10/2 Rob Cliffe <rob.cliffe at btinternet.com>:
>> So: please speak, if you agree with me, whether for the reasons I give or
>> for different ones, or if you disagree with me - please give reasons too.
>
> I believe that the key reason for there being restrictions is to avoid
> Python code looking like "line noise". That's not precise - the
> specific rules as given express a sensible (in my view) balance
> between this goal and simplicity of
> implementation/explanation/usability.
+1 to everything Paul said (including the parts I cut)
+1 to a patch that relaxes the restriction on decorations to allow
subscript operations in addition to call operations.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-ideas
mailing list