Linux.com: Python 3 makes a big break

Aahz aahz at pythoncraft.com
Sun Oct 19 13:40:52 EDT 2008


In article <mailman.2664.1224428124.3487.python-list at python.org>,
D'Arcy J.M. Cain <darcy at druid.net> wrote:
>On 19 Oct 2008 07:44:52 -0700
>aahz at pythoncraft.com (Aahz) wrote:
>>>   sys.stdout.write \
>>>      (
>> 
>> Why are you using a backslash?
>
>Because he hasn't opened the paren yet.  He could have put the open
>paren on the same line as the write obviating the need for the
>backslash but then his open/close parens wouldn't line up.  It just a
>matter of style.

Well, no, it's not *just* a matter of style.  I'm strongly opposed to
backslashes because they break when you get whitespace after them.  (And
note carefully that I said "when" and not "if".)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

import antigravity



More information about the Python-list mailing list