[Zope-dev] Required final newline in Script (Python) in Zope 2.4.3

maxm maxm@mxm.dk
Mon, 17 Dec 2001 14:09:33 +0100


From: "Jean Jordaan" <jean@upfrontsystems.co.za>

> I'm moving an app to Zope 2.4.3, and one thing I've discovered is
> that methods that don't end with a final newline are invalid::

> Is this a feature? An inevitability? Is it Good For Me?

That is a bug. There's no reason for such behaviour. Except for some lazy
;-) programmer doing::

for line in readlines:
    line = line[:-1]

without checking if there is a non empty line in the end.

regards Max M