Re: [Python-Dev] Syntax error in python2.6

2008-07-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Malthe Borch wrote: > Lennart Regebro wrote: >> 2. Using **kw in the argument and looking for noth "with" and "with_", >> that way, which will be backwards compatible. > > +1 The implementation of this function is already so obscure that using keywor

Re: [Python-Dev] Syntax error in python2.6

2008-07-21 Thread Malthe Borch
Lennart Regebro wrote: 2. Using **kw in the argument and looking for noth "with" and "with_", that way, which will be backwards compatible. +1 \malthe ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-d

Re: [Python-Dev] Syntax error in python2.6

2008-07-21 Thread Lennart Regebro
On Mon, Jul 21, 2008 at 14:09, Bristow Thankachan <[EMAIL PROTECTED]> wrote: > Can anybody tell me whether this implies it is backward compatible in > python2.4? If you change the API it isn't backwards compatible. The question is if this is a problem or not, if anything outside Zope itself is usi

Re: [Python-Dev] Syntax error in python2.6

2008-07-21 Thread Bristow Thankachan
hi all, I changed the attribute 'with' in /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py to 'wit' and I ran the tests in python2.4 and I got the following result. Running tests at level 1 Running unit tests: Running: Ran 285 tests with 0 failures and 0 errors in 6.587 seconds

Re: [Python-Dev] Syntax error in python2.6

2008-07-21 Thread Jesse Noller
Because as of 2.6 the 'with' word is now part of the with statement, see pep 343. On Jul 21, 2008, at 7:13 AM, "Bristow Thankachan" <[EMAIL PROTECTED] > wrote: Hi everybody, During the porting of Zope2 to Python2.6, I am stuck with a syntax error in the module AccessControl, which is gi

[Python-Dev] Syntax error in python2.6

2008-07-21 Thread Bristow Thankachan
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/