Message1543
Ditto (simplejson 1.7)
$ jython
Jython 2.2b1 on java1.6.0 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> from __future__ import generators
>>> import sys
>>> sys.path.append("/usr/lib64/python2.4/site-packages")
>>> sys.path=sys.path[1:]
>>> import simplejson.scanner
Traceback (innermost last):
File "<console>", line 1, in ?
File "/usr/lib64/python2.4/site-packages/simplejson/__init__.py", line 95, in ?
File "/usr/lib64/python2.4/site-packages/simplejson/decoder.py", line 6, in ?
File "/usr/lib64/python2.4/site-packages/simplejson/scanner.py", line 55
yield rval, matchend
^
SyntaxError: invalid syntax
$ java -Djava.library.path=/usr/lib64/libreadline-java -classpath /usr/share/libreadline-java/lib/libreadline-java.jar:dist/jython.jar org.python.util.jython
Jython 2.3a0 on java1.6.0
Type "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append("/usr/lib64/python2.4/site-packages")
>>> sys.path=sys.path[1:]
>>> import simplejson.scanner
>>>
I have no idea about where the difference lies, but looks like the generator feature is "forgotten" in the process of importing. |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:47 | admin | link | issue1691096 messages |
2008-02-20 17:17:47 | admin | create | |
|