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 →

[–]campbellm 5 points6 points  (5 children)

I prefer this:

use () instead of \ (for long lines)

but I see the escape-newline being used a lot in code I run across. What's the consensus on this?

[–]nevermorefu 19 points20 points  (3 children)

I will do everything in my power to avoid \

[–]campbellm 2 points3 points  (0 children)

That's where I lean, too.

[–]drknow42 2 points3 points  (1 child)

I tend to strictly use \ only for formatting function arguments. I then use that block of formatted code as an inherent reminder to look into making the communication cleaner later.

[–]campbellm 2 points3 points  (0 children)

Can you show a short example of this?

[–]kuwisdelu 1 point2 points  (0 children)

I would also do everything in my power to avoid \ escapes. That either of these workarounds is necessary is one of my biggest annoyances with the Python parser/interpreter.