<div dir="ltr">Thank you for the quick response. I made the change and got the syntax error corrected.<br><br>with regards<br><br>Bristow.<br><br><div class="gmail_quote">On Mon, Jul 21, 2008 at 4:57 PM, Tino Wildenhain &lt;<a href="mailto:tino@wildenhain.de">tino@wildenhain.de</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Bristow Thankachan wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everybody,<br>
<br>
During the porting of Zope2 to Python2.6, I am stuck with a syntax error in the module AccessControl, which is given below.<br>
<br>
def reorder(s, with=None, without=()):<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<br>
SyntaxError: invalid syntax<br>
<br>
in line 56 of /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py.<br>
The same code when run in python2.4 and python2.5 didn&#39;t give any syntax errors. Can anybody suggest &nbsp;the reason for this syntax error in python2.6.<br>
</blockquote>
<br></div></div>
I&#39;d say, &quot;with&quot; is now a keyword.<br>
<br>
<a href="http://docs.python.org/ref/keywords.html" target="_blank">http://docs.python.org/ref/keywords.html</a><br>
<br>
btw, shouldn&#39;t this already give a warning in 2.5?<br>
<br>
Cheers<br><font color="#888888">
Tino<br>
</font></blockquote></div><br></div>