Parsing using Ply and Jython ...

View: New views
1 Messages — Rating Filter:   Alert me  

Parsing using Ply and Jython ...

by Markus Krosche-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello together,

I want to use ply for parsing some expressions. I have downloaded the actual version of ply (http://www.dabeaz.com/ply/) and started to run the "calc.py" example (which comes with the ply-package).

It is not working and the error is:

File "<script>", line 42, in <module>
  File "C:\DATA\download\ply-3.3\ply\lex.py", line 887, in lex
    ldict = get_caller_module_dict(2)
  File "C:\DATA\download\ply-3.3\ply\lex.py", line 436, in get_caller_module_dict
    ldict = f.f_globals.copy()
AttributeError: 'scope' object has no attribute 'copy'

Is this a "jython specific" problem with the lex.py?

Thanks in advance
Markus


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users