473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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
4 1172
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Russell Wallace | last post by:
Hi all, Python lets you continue a single logical line across more than one physical line, either by putting a \ at the end or letting it happen automatically with an incomplete infix operator....
19
by: Philipp Lenssen | last post by:
I don't know the English word, but I'm referring to the double-dash which is used to separate parts of a sentence. I'm using — so far. Now I saw – which is slightly shorter. Some sites use --. ...
34
by: Justin Timberlake | last post by:
I was thinking about all those /Indian Outsourcing/ companies getting those .Net shops set up. 0. Nobody uses .NET in the real world, it's all java. 1. MSFT is about to collapse as witnessed by...
43
by: Rob R. Ainscough | last post by:
I realize I'm learning web development and there is a STEEP learning curve, but so far I've had to learn: HTML XML JavaScript ASP.NET using VB.NET ..NET Framework ADO.NET SSL
17
by: Edwin Knoppert | last post by:
I know ASP.NET 1.x generated dll's which decompilable to plain c or vb (afaik, i never used 2003) Is this problem solved in 2005? We ever want to distribute 2005 compiled code. And it seems all...
8
by: tintagel | last post by:
Hi everyone, I've just joined your group! I'm pretty new to HTML etc. Here's my problem: I'm attached to the idea of keeping content separate from formatting information, so I like putting...
23
by: JoeC | last post by:
I am a self taught programmer and I have figured out most syntax but desigining my programs is a challenge. I realize that there are many ways to design a program but what are some good rules to...
0
by: Eduardo Luiz | last post by:
Hi, im brazilian.. Sorry my english.. I need a component to manager sounds.. Split, Joiner... i have one sound.. and i need insert a other sound (ads) in a second or frame position.. Ex: ...
2
by: gypsy3001 | last post by:
Today, I was trying to construct a regular express in JavaScript. But I kept getting the "Error: unterminated parenthetical" message. I want to do something like this: keyCombo = ":(";...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.