Message10543

Author zyasoft
Recipients saltnlight5, zyasoft
Date 2015-12-17.04:12:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450325558.3.0.931322344141.issue2373@psf.upfronthosting.co.za>
In-reply-to
Content
This demo is absolutely ancient code - JPython?!!! - and uses some arguable bad coding practices such as stopping threads and what appears to be an unnecessary late import of sys. The underlying problem is that it needs to now construct an interactive console much like org.python.util.jython. So something like this code snippet:

        // Now create an interpreter
        if (!opts.interactive) {
            // Not (really) interactive, so do not use console prompts
            systemState.ps1 = systemState.ps2 = Py.EmptyString;
        }
        InteractiveConsole interp = new InteractiveConsole();

At this point, sys.ps1 and sys.ps2 are defined.
History
Date User Action Args
2015-12-17 04:12:38zyasoftsetmessageid: <1450325558.3.0.931322344141.issue2373@psf.upfronthosting.co.za>
2015-12-17 04:12:38zyasoftsetrecipients: + zyasoft, saltnlight5
2015-12-17 04:12:38zyasoftlinkissue2373 messages
2015-12-17 04:12:37zyasoftcreate