https://issues.apache.org/bugzilla/show_bug.cgi?id=47511
--- Comment #6 from Sebb <s...@apache.org> 2009-07-31 13:38:10 PST --- I think the problem is actually with Jython - as far as I can tell, it does not allow a script to return a value. One can either call eval(), and provide a single expression, or call exec() and provide one or more statements; however exec() does not return a value. The only reference I could find to JSR-223 and Jython is the following: http://www.jython.org/archive/22/userguide.html#using-jsr-223 which clearly shows that each eval() call is a single statement. Looks like the only work-round at present would be to write an engine that reads the script line by line and calls eval() for each one. Or one could process all but the last line using exec() and then use eval() for the last line. This would require a lot of storage if the script is long, and both solutions only work if each statement is on a separate line. Rather messy. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org