Continuing indentation
Steven D'Aprano
steve at pearwood.info
Wed Mar 2 21:15:05 EST 2016
On Thu, 3 Mar 2016 09:10 am, Marko Rauhamaa wrote:
> Ethan Furman <ethan at stoneleaf.us>:
>
>> No, it isn't. Using '\' for line continuation is strongly discouraged.
>
> Why would you discourage valid syntax?
Because it is error-prone and ugly.
This is valid syntax too. Do you write your code like this?
x = ++ ++ -- ++ -- --1
y = (((((2))))) , 3
s = "Hello world!" . upper()
--
Steven
More information about the Python-list
mailing list