Required final newline in Script (Python) in Zope 2.4.3
Hi people 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:: Script line 13 REQUEST.RESPONSE.redirect(url) ^ SyntaxError: invalid syntax If I go press return after the ), everything is fine. Is this a feature? An inevitability? Is it Good For Me? Regards, Jean Jordaan
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
participants (2)
-
Jean Jordaan -
maxm