From: =?utf-8?Q?<mdu...@vo...> - 2002-12-18 14:19:24
|
Hi, when I was using Python, I made some C++ specific modules compiled as .so files that I could import from python kust by typing "import myModule". I just had to copy them into "lib-dynload" directory. I saw that Jython does not allow to use modules writen in C. But is there absolutly any way to do so? Or is it planed for a new version of Jython? > Send Jython-users mailing list submissions to > jyt...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/jython-users > or, via email, send a message with subject or body 'help' to > jyt...@li... > > You can reach the person managing the list at > jyt...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Jython-users digest..." > > > Today's Topics: > > 1. Re: java calling a method of python object (Ype Kingma) > 2. extreme memory usage and the FAQ? (Joseph T. Bore) > 3. Re: extreme memory usage and the FAQ? (Alex Tichtchenko) > 4. Configuring Jython with Tomcat (sivaprasad kondapalli) > > --__--__-- > > Message: 1 > From: Ype Kingma <yp...@xs...> > To: Frederik Dietz <fr...@un...>, > jyt...@li... > Subject: Re: [Jython-users] java calling a method of python object > Date: Mon, 16 Dec 2002 19:15:39 +0100 > > On Monday 16 December 2002 00:31, Frederik Dietz wrote: > > Hi guys, > > > > I finally managed to write some jython scripts and passing > > arguments to them. Extending/subclassing java classes is > > working, too. > > > > What I'm searching for now is: > > > > I have an abstract java class called AbstractPlugin. It has > > a run-method where you can pass some arguments and > > a return value. > > When writing a plugin I just subclass AbstractPlugin, create > > a instance and call the run-method. No problem. > > > > But, how am I able to do the same with jython? > > I need to subclass the java class with jython. > > That much you've got working. > > > Then I want > > to instanciate the python class in java and call the > > run-method in java, too. > > Have a look at: > http://www.jython.org/docs/javadoc/org/python/util/PythonInterpreter.html > Use: > - execfile() to execute your code. > - get() to get the name of the python class you need to instantiate, > > Then look at: > http://www.jython.org/docs/javadoc/org/python/core/PyObject.html > and use: > - __call__() to call this class object, so it creates new instance. > - invoke() on this instance to call a method on in it. > > Have fun, > Ype > > > --__--__-- > > Message: 2 > From: "Joseph T. Bore" <jb...@jp...> > To: <jyt...@li...> > Date: Mon, 16 Dec 2002 14:14:26 -0500 > Subject: [Jython-users] extreme memory usage and the FAQ? > > > Im just looking for a hint as to where (or how) I might go looking: > > I'm using jython embedded in my code and I have a loop which iterates 390 > times. Almost every time, at about the 8'th iteration of the loop, between > the main loop and a function call, my JVM comes to a screaching halt and > allocates about 600MB of memory. > > Im *positive* my code doesnt need that much memory. But I cant figure out > why it might be inclined to do so. > > Sometimes if i delete the object and reinstantiate it, then call the loop > again, it will just work without the giant leap in memory usage. > > Any way to find out who/why is requesting that memory? > > thanks in advance. > > Joe Bore > > ps, whats up with that faq, its always empty. > > > > > > > > > > > > > > > > > > > > > > WARNING: All e-mail sent to or from this address will be received or otherwise recorded by Andover and is subject to archival, monitoring or review by management. All e-mail sent to or from this address may be disclosed to someone other than the recipient. The information in this email (and any attachments) may also contain confidential and privileged information. Please remember that any advertising material must receive prior approval before it is disseminated. If you are not the intended recipient, you must not read, use or disseminate the information. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Andover for any loss or damage arising in any way from its use. > > > > > --__--__-- > > Message: 3 > From: "Alex Tichtchenko" <fl...@ax...> > To: "Joseph T. Bore" <jb...@jp...>, > <jyt...@li...> > Subject: Re: [Jython-users] extreme memory usage and the FAQ? > Date: Tue, 17 Dec 2002 17:44:36 +0300 > > Can you provide your loop ? Any chance it is using any of the hashing > functions like md5 ? > > Cheers, > Alex > > ----- Original Message ----- > From: "Joseph T. Bore" <jb...@jp...> > To: <jyt...@li...> > Sent: Monday, December 16, 2002 10:14 PM > Subject: [Jython-users] extreme memory usage and the FAQ? > > > > > > Im just looking for a hint as to where (or how) I might go looking: > > > > I'm using jython embedded in my code and I have a loop which iterates 390 > > times. Almost every time, at about the 8'th iteration of the loop, > between > > the main loop and a function call, my JVM comes to a screaching halt and > > allocates about 600MB of memory. > > > > Im *positive* my code doesnt need that much memory. But I cant figure out > > why it might be inclined to do so. > > > > Sometimes if i delete the object and reinstantiate it, then call the loop > > again, it will just work without the giant leap in memory usage. > > > > Any way to find out who/why is requesting that memory? > > > > thanks in advance. > > > > Joe Bore > > > > ps, whats up with that faq, its always empty. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > WARNING: All e-mail sent to or from this address will be received or > otherwise recorded by Andover and is subject to archival, monitoring or > review by management. All e-mail sent to or from this address may be > disclosed to someone other than the recipient. The information in this email > (and any attachments) may also contain confidential and privileged > information. Please remember that any advertising material must receive > prior approval before it is disseminated. If you are not the intended > recipient, you must not read, use or disseminate the information. Although > this email and any attachments are believed to be free of any virus or other > defect that might affect any computer system into which it is received and > opened, it is the responsibility of the recipient to ensure that it is virus > free and no responsibility is accepted by Andover for any loss or damage > arising in any way from its use. > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > https://lists.sourceforge.net/lists/listinfo/jython-users > > > > --__--__-- > > Message: 4 > Date: Tue, 17 Dec 2002 08:04:18 -0800 (PST) > From: sivaprasad kondapalli <kvs...@ya...> > To: Jyt...@li... > Subject: [Jython-users] Configuring Jython with Tomcat > > --0-367196372-1040141058=3D:8329 > Content-Type: text/plain; charset=3Dus-ascii > > > Hi, > > I installed Jython on my Linux box and I got Tomcat(3.2.x ver) already installed on it. > > Can anyone pls tell me how to configure Jython on tomcat? > > Thanks in Advance > > Regards > Siva > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > --0-367196372-1040141058=3D:8329 > Content-Type: text/html; charset=3Dus-ascii > > <P>Hi,</P> > <P>I installed Jython on my Linux box and I got Tomcat(3.2.x ver) already installed on it.</P> > <P>Can anyone pls tell me how to configure Jython on tomcat?</P> > <P>Thanks in Advance</P> > <P>Regards<BR>Siva</P> > <P>=A0</P><p><br><hr size=3D1>Do you Yahoo!?<br> > <a href=3D"http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href=3D"http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a> > --0-367196372-1040141058=3D:8329-- > > > > --__--__-- > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > > End of Jython-users Digest > ------------------------------------------ Faites un voeu et puis Voila ! www.voila.fr |