Continuing indentation
Marko Rauhamaa
marko at pacujo.net
Thu Mar 3 11:47:41 EST 2016
John Gordon <gordon at panix.com>:
> In <871t7sbkex.fsf at elektro.pacujo.net> Marko Rauhamaa
> <marko at pacujo.net> writes:
>
>> Ethan Furman <ethan at stoneleaf.us>:
>
>> > No, it isn't. Using '\' for line continuation is strongly discouraged.
>
>> Why would you discourage valid syntax?
>
> Some things that are permissible may not be desirable.
Line continuations are such a central part of the syntax that it would
seem silly to deprecate them.
While it is true that
if a and \
b:
pass
is ugly,
if (a and
b):
pass
is even uglier.
Marko
More information about the Python-list
mailing list