[Zope-Coders] Re: [Zope] zope-2.5.1_2 compilation failures

Chris Withers chrisw@nipltd.com
Thu, 21 Nov 2002 11:18:57 +0000


Noah Garrett Wallach wrote:
> 
> ------------------------------------------------------------------------------
> Compiling python modules
>   File
> "/usr/local/www/Zope/lib/python/Products/Squishdot/validatePosting.py",
> lin
> e 31
>     return Processed,'You must enter an email address for notification!'
> SyntaxError: 'return' outside function
> 
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> There were errors during Python module compilation.
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This optimisation is dumb for the very reasons that it caused errors like this.
I heard rumours it was being dumped for Zope 2.6, has it?

cheers,

Chris