[Python-ideas] with statement syntax forces ugly line breaks?

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 9 01:19:47 CEST 2010


MRAB wrote:
> On 08/09/2010 22:30, Nick Coghlan wrote:
> 
>> I've sometimes wondered if we should consider the idea of making line
>> continuation implicit between keywords and their associated colons.
>>
> If a colon was omitted by mistake, how much later would the parser
> report a syntax error?

It might be best to allow this only if the continuation
lines are indented at least as far as the starting line.

-- 
Greg



More information about the Python-ideas mailing list