|
From: Michael F. <fuz...@vo...> - 2008-03-18 17:58:06
|
Hi Robert, *Damn*. That could be a straight list comprehension and it should work fine on Python 2.3. I'll fix that in a future release... Michael Robert Nikutta wrote: > Hi Michael, > > today it's about validate.py. I'm using the wonderful combination of > configobj.py and validate.py (v0.3.1), which work great, thanks a lot > for this. > > Today I tried to run this on an other machine that has Python 2.3.4 > installed (CentOS). This failed, complaining about syntax error in > validate.py. Here's the traceback: > > ----- > Traceback (most recent call last): > File "./clumpy.py", line 1196, in ? > import configobj, validate > File "src/python/validate.py", line 627 > fun_kwargs = dict((str(key), value) for (key, value) in > fun_kwargs.items()) > ^ > SyntaxError: invalid syntax > ----- > > I see that the code states that Python >= 2.2 should be fine, but it > obviously isn't. > > I installed Python 2.5.2, and it runs again, of course. > > Best, > Robert > > |