Quantcast
Channel: jython Changelog
Viewing all articles
Browse latest Browse all 38

Create a __main__ module and set __name__ in JSR-223 (fixes #2846).

$
0
0
changeset 58d45a33c32f
branch
bookmark
tag
user Jeff Allen <ja.py@farowl.co.uk>
description Create a __main__ module and set __name__ in JSR-223 (fixes #2846).

This change causes the default engine context in a PyScriptEngine to be
created as a module __main__, and __name__ to be defined, comparable to
the environment found when executing a Python program. The thread-local
name space concept is otherwise undisturbed.

org.python.jsr223.ScriptEngineTest cases are modified correspondingly,
and testThreadLocalBindings is fixed to test isolation within a thread.
files NEWS
src/org/python/util/PythonInterpreter.java
tests/java/org/python/jsr223/ScriptEngineTest.java

Viewing all articles
Browse latest Browse all 38

Trending Articles