[Python-Dev] [Zope-dev] Syntax error in python2.6
bristow.thankachan at gmail.com
Mon Jul 21 13:45:09 CEST 2008
Thank you for the quick response. I made the change and got the syntax error
On Mon, Jul 21, 2008 at 4:57 PM, Tino Wildenhain <tino at wildenhain.de> wrote:
> Bristow Thankachan wrote:
>> Hi everybody,
>> During the porting of Zope2 to Python2.6, I am stuck with a syntax error
>> in the module AccessControl, which is given below.
>> def reorder(s, with=None, without=()):
>> SyntaxError: invalid syntax
>> in line 56 of
>> The same code when run in python2.4 and python2.5 didn't give any syntax
>> errors. Can anybody suggest the reason for this syntax error in python2.6.
> I'd say, "with" is now a keyword.
> btw, shouldn't this already give a warning in 2.5?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev