[Python-ideas] Multiple statement lambda expressions

Steven D'Aprano steve at pearwood.info
Sun Aug 25 10:10:53 CEST 2013


On 25/08/13 13:24, Musical Notation wrote:

> The double-semicolon notation can also replace indentation for grouping of statements:
>
> y=0
> for x in list:
>      y=2*y+x
>      if y%13==0:
>          y=12;;;;


I don't understand what you mean by "replace indentation". You haven't replaced indentation, it is still there.

Also, I think that any proposal to remove significant indentation will go nowhere. Python's philosophy is that significant indentation is a feature, not a bug to be removed. You might as well propose getting rid of functions.

-- 
Steven


More information about the Python-ideas mailing list