467,915 Members | 1,262 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

Proof that \ is a better line joiner than parenthetical sets

Goofy post of the day...

According to the Zen of Python, "explicit is better than implicit", and the
section in the Reference Manual describing the \ line joiner is called
"Explicit line joining" and the section describing parentheticals is called
"Implicit line joining."

So there! ;)
Jun 27 '08 #1
  • viewed: 1066
Share:
4 Replies
John Salerno wrote:
According to the Zen of Python, "explicit is better than implicit", and
the section in the Reference Manual describing the \ line joiner is called
"Explicit line joining" and the section describing parentheticals is
called "Implicit line joining."

So there! ;)
However, according to the Zen of Python, the line before

"Explicit is better than implicit."

says:

"Beautiful is better than ugly."

And I think putting parenthesis around a multi-line statement is much
prettier.

So there! :)

j
Jun 27 '08 #2
One or more spaces behind a \ used for joining a multi-line statement
can already generate a SyntaxError exception.

2:1 for paranthesis
Jun 27 '08 #3
"Joshua Kugler" <jk*****@bigfoot.comwrote in message
news:ma*************************************@pytho n.org...
However, according to the Zen of Python, the line before

"Explicit is better than implicit."

says:

"Beautiful is better than ugly."

And I think putting parenthesis around a multi-line statement is much
prettier.

So there! :)
Oh, I just got owned! It seems there's a zen to the Zen, as well!

And for what it's worth, I actually like the parentheses better anyway. :)
Jun 27 '08 #4
Joshua Kugler wrote:
"Beautiful is better than ugly."
And I think putting parenthesis around a multi-line statement is much
prettier.

So there! :)

j
And PEP 8 agrees with you. Another vote for parens.

-Jordan
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Russell Wallace | last post: by
19 posts views Thread by Philipp Lenssen | last post: by
34 posts views Thread by Justin Timberlake | last post: by
43 posts views Thread by Rob R. Ainscough | last post: by
17 posts views Thread by Edwin Knoppert | last post: by
8 posts views Thread by tintagel | last post: by
23 posts views Thread by JoeC | last post: by
reply views Thread by Eduardo Luiz | last post: by
2 posts views Thread by gypsy3001 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.