[Python-ideas] Allowing comments after line continuations

Antoine Pitrou solipsis at pitrou.net
Fri May 17 10:51:45 CEST 2013


Le Fri, 17 May 2013 09:30:50 +0200,
"M.-A. Lemburg" <mal at egenix.com> a écrit :
> 
> I'm -1 on making the backslash more attractive to use :-)
> 
> In most use cases, you can create much more readable code
> by using parenthesis, which easily allow spanning statements
> and expressions across multiple lines.
> 
> Those read better, work better in editors (automatic indentation)
> and are less error prone than the backslash.
> 
> If there are common use cases left which can currently not be
> handled by parens, I'd be +1 on fixing those.

I kind of agree with Marc-André.

Regards

Antoine.




More information about the Python-ideas mailing list