Arcane question regarding white space, editors, and code collapsing

Aahz aahz at pythoncraft.com
Sat Nov 28 12:44:18 EST 2009


In article <87fx8bl74c.fsf at benfinney.id.au>,
Ben Finney  <ben+python at benfinney.id.au> wrote:
>Wells <wells at submute.net> writes:
>>
>> Is it... pythonic, then, to have these lines of tabs/spaces to support
>> code collapsing? Is it proper, improper, or irrelevant?
>
>It's quite improper (though syntactically null, in Python) to have
>trailing whitespace on lines. That includes blank lines.

Your parenthetical is not quite true, unfortunately.  Trailing whitespace
after a continuation backslash generates a SyntaxError.  That's the main
reason I loathe continuation lines.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

The best way to get information on Usenet is not to ask a question, but
to post the wrong information.  



More information about the Python-list mailing list