#2 pyparsing 1.2 Problmes with simpleSQL.py example ...

closed
nobody
5
2004-06-25
2004-06-24
No

F:\temp\pyparsing-1.2\examples>python simpleSQL.py
Traceback (most recent call last):
File "simpleSQL.py", line 43, in ?
binop = oneOf("= != < > >= <= eq ne lt le gt ge",
caseless=True)
File "C:\Python22\Lib\site-packages\pyparsing.py",
line 1597, in oneOf
for j,other in enumerate(symbols[i+1:]):
NameError: global name 'enumerate' is not defined

--
Hello could you help?
my python version is :

F:\temp\pyparsing-1.2\examples>python
ActivePython 2.2.3 Build 227 (ActiveState Corp.) based on
Python 2.2.3 (#42, Nov 13 2003, 09:57:55) [MSC 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>>

Regards
Carl r.

Discussion

  • Paul McGuire

    Paul McGuire - 2004-06-25

    Logged In: YES
    user_id=893320

    Is there a chance you could upgrade to Python2.3? As I
    recall, 'enumerate' was added in that version.

    I think there are a number of Python 2.3 features that I use
    in pyparsing - I'm not sure how easy it would be to back up
    to v2.2 compatibility.

    In any event, I need to either make pyparsing compatible with
    Python 2.2 or document that 2.3 is required.

    -- Paul

     
  • Carl Reitschuster

    Logged In: YES
    user_id=385682

    Very Good,

    i will uprage to python 2.3 (we want to use it too, so
    please USE 2.3 features), but a note in the readme would be
    very fine indeed.

    thx
    Carl

     
  • Paul McGuire

    Paul McGuire - 2004-06-25

    Logged In: YES
    user_id=893320

    I have added a note in the README for the next release, and
    will update online docs as well.

    Thanks for the comments!
    -- Paul

     
  • Paul McGuire

    Paul McGuire - 2004-06-25
    • status: open --> closed
     

Log in to post a comment.