On 3/03/22 9:50 pm, Steven D'Aprano wrote:
While you can put the block on the same line as the colon using
semicolons:

     if condition: print(1); print(2)  # Legal.

and there's nothing to stop you from making arbitrarily long
lines using this feature...

if condition: print(1); print(2); print(buckle); print(my_shoe); print("Is this line long enough yet?")

So if Python is opinionated about line lengths, it's rather
selectively opinionated.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/X6QQV5GDVCIVIDFYS6G5WEMUG2WG65BH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to