Re: the war on trailing whitespace
- From
- Josef Weidendorfer <josef.weidendorfer@gmx.de>
- Date
- Feb 27, 2006, 16:08 UTC
- Message-ID
- <200602271708.24656.Josef.Weidendorfer@gmx.de>
- In-Reply-To
- <4403086F.5040704@op5.se>
On Monday 27 February 2006 15:10, you wrote:
> So in essence, a multi-line statement is closed when a completely empty > line is found,
As I read this reference, such handling of completely empty lines is done only in interactive mode, ie. when python is attached to a terminal... Git is about storing python scripts, and not "interactive input"; therefore, this seems to be a non-issue.
I just checked it. The following, with a completely empty line 3, is working as expected, and not looping on an empty statement: =================== a = ['cat', 'window', 'defenestrate'] for x in a:
print x, len(x) ===================
Josef
PS: I am not a python programmer...