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. Running Testing.ZopeTestCase.layer.ZopeLite tests: Set up Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds. Running: Ran 1 tests with 0 failures and 0 errors in 0.064 seconds. Tearing down left over layers: Tear down Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds. Total: 286 tests, 0 failures, 0 errors in 1.044 seconds. Can anybody tell me whether this implies it is backward compatible in python2.4? with regards Bristow On Mon, Jul 21, 2008 at 4:43 PM, 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 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. > >
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com