Message11696

Author jeff.allen
Recipients jamesmudd, jeff.allen
Date 2018-01-03.23:31:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515022306.76.0.467229070634.issue2650@psf.upfronthosting.co.za>
In-reply-to
Content
From a similar program to the one James posts, we now receive:

PythonInterpreter said: NameError: name 's' is not defined
And the stacktrace is:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 's' is not defined

ScriptEngine said:      NameError: name 's' is not defined in <script> at line number 1
And the stacktrace is:
javax.script.ScriptException: NameError: name 's' is not defined in <script> at line number 1
        at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:222)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:59)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31)
        at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
        at issues.Issue2650.main(Issue2650.java:29)
Caused by: Traceback (most recent call last):
  File "<script>", line 1, in <module>
NameError: name 's' is not defined

        at org.python.core.Py.NameError(Py.java:268)
        at org.python.core.PyFrame.getname(PyFrame.java:257)
        at org.python.pycode._pyx1.f$0(<script>:1)
        at org.python.pycode._pyx1.call_function(<script>)
        at org.python.core.PyTableCode.call(PyTableCode.java:171)
        at org.python.core.PyCode.call(PyCode.java:18)
        at org.python.core.Py.runCode(Py.java:1589)
        at org.python.core.__builtin__.eval(__builtin__.java:497)
        at org.python.core.__builtin__.eval(__builtin__.java:501)
        at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:57)
        ... 3 more

Interesting differences, but all the Python information is in both and the critical shortcoming is fixed.

Now committed at: https://hg.python.org/jython/rev/d74f8c2cd56f
History
Date User Action Args
2018-01-03 23:31:46jeff.allensetmessageid: <1515022306.76.0.467229070634.issue2650@psf.upfronthosting.co.za>
2018-01-03 23:31:46jeff.allensetrecipients: + jeff.allen, jamesmudd
2018-01-03 23:31:46jeff.allenlinkissue2650 messages
2018-01-03 23:31:45jeff.allencreate