473,287 Members | 3,295 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,287 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 1168
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: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.