[Python-ideas] Before and after the colon in funciton defs.

MRAB python at mrabarnett.plus.com
Thu Sep 22 02:37:05 CEST 2011

On 21/09/2011 23:38, Eric Snow wrote:
> On Wed, Sep 21, 2011 at 3:59 PM, Guido van Rossum<guido at python.org>  wrote:
>> Hm. I think doing this as an expression modifier is too wacky. But as
>> a statement modifier, it could fit in the lineage of global and
>> nonlocal.
> Agreed, though just for assignment statements.   Also, it may be
> confusing to allow more than one static assignment to the same name in
> the function body.  Perhaps that should be a SyntaxError.
I'm not sure that SyntaxError would be right (it's not the syntax
that's the problem!). NameError, perhaps?

More information about the Python-ideas mailing list