A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-July/081463.html below:

[Python-Dev] [Zope-dev] Syntax error in python2.6

[Python-Dev] [Zope-dev] Syntax error in python2.6 [Python-Dev] [Zope-dev] Syntax error in python2.6Tino Wildenhain tino at wildenhain.de
Mon Jul 21 13:27:55 CEST 2008
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 /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py.
> 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.

http://docs.python.org/ref/keywords.html

btw, shouldn't this already give a warning in 2.5?

Cheers
Tino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20080721/bff9aa2c/attachment.bin>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4