newbie - modules for jython (under grinder 3) ?
I'm just trying to use Grinder 3 to beat up my http-app. Grinder 3 comes with its own jython.jar. Some of the sample scripts: http://grinder.sourceforge.net/g3/script-gallery.html use import statements that don't work for me. Reading around, these are reference to modules. Do I need a "proper" jython instead of the one that grinder ships with? Or... Do I need to get and install some modules? If the latter, where from and how? I note that not all Python modules can be used as Jython modules. My most urgent need is for the threading module, although I've faked my way round that by using Doug Lea's concurrent library in java, which I can call from Jython. http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html But I'd like to know how to do it "right" BugBear -- http://mail.python.org/mailman/listinfo/python-list
Re: newbie - modules for jython (under grinder 3) ?
Diez B. Roggisch wrote: > bugbear wrote: > >> I'm just trying to use Grinder 3 to beat >> up my http-app. >> >> Grinder 3 comes with its own jython.jar. >> >> Some of the sample scripts: >> http://grinder.sourceforge.net/g3/script-gallery.html >> use import statements that don't work for me. >> >> Reading around, these are reference to modules. >> >> Do I need a "proper" jython instead of the one >> that grinder ships with? > > > I guess so - at least there are jython-modules written as *py-files in > my jython installation, including the threading.py module. Now - I don't > exactly remember how to specify where to find those, but AFAIK there is > a system property that you have to set to that path. > > So - go, fetch jython from jython.org, install it and try to proceed. > OK - of course this means I'll have to tell Grinder to use "my" Jython, not "its" Jython. Hopefully that's well documented :-) BugBear -- http://mail.python.org/mailman/listinfo/python-list
Re: What are OOP's Jargons and Complexities
Xah Lee wrote: > So, a simple code like this in normal languages: > > a = "a string"; > b = "another one"; > c = join(a,b); > print c; > > or in lisp style > > (set a "a string") > (set b "another one") > (set c (join a b)) > (print c) > > becomes in Java: > > public class test { > public static void main(String[] args) { > String a = new String("a string"); > String b = new String("another one"); > StringBuffer c = new StringBuffer(40); > c.append(a); c.append(b); > System.out.println(c.toString()); > } > } Er. How about public class test { public static void main(String[] args) { String a = "a string"; String b = "another one"; StringBuffer c = a + b; System.out.println(c); } } Alternatively I could recode your Lisp example as badly as you coded your Java. BugBear -- http://mail.python.org/mailman/listinfo/python-list
Re: John Bokma harassment
Mitch wrote: > Sure, each server has terms and conditions that apply, doesn't mean you > should be able to ban people from speaking just because you don't like > what they say. You are a silly person. BugBear -- http://mail.python.org/mailman/listinfo/python-list