From: SourceForge.net <no...@so...> - 2007-04-13 06:43:48
|
Bugs item #1691096, was opened at 2007-03-30 03:22 Message generated for change (Settings changed) made by cgroves You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1691096&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core >Group: targeted for 2.2beta2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Santiago Gala (sgala) Assigned to: Nobody/Anonymous (nobody) Summary: simplejson refuses to import in 2.2b1, works in 2.3 branch Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1691096&group_id=12867 |