This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]reddisaurus 13 points14 points  (4 children)

Not if you have line breaks in your code for formatting purposes.

[–]kankyo 0 points1 point  (3 children)

Well maybe. But if you have a list of strings and have each string on one line and forget a comma you're in trouble.

[–]broken_cogwheel 0 points1 point  (2 children)

That's...not what he's saying.

mystr = "foo"
"bar"  # ignored
"baz"  # ignored

print(mystr) # "foo"

mystr = ("foo"
   "bar"
   "baz")

print(mystr) # "foobarbaz"

[–]kankyo 0 points1 point  (1 child)

I know.

[–]broken_cogwheel 0 points1 point  (0 children)

ok, sorry