From: Frank C. <fc...@pu...> - 2001-09-21 07:56:18
|
Some newbie questions. Thanks, in advance, for answering them. 1) How do I find implemented methods and objects? For example, A Python book shows how to use thread.start_new(count, (i, 3)) which generates this error: AttributeError: class "org.python.modules.thread' has no attribute 'start_new'. I'd like something - even the JavaDoc - that would help me find and fix the problem. 2) Does Jython have an ability to handle "include" files? For eample, I have one Jython script that calls a Jython script file and passes control to the new script. 3) Will someone point me in the right direction to do SSL in Jython. Thanks. -Frank -- Frank Cohen, founder, PushToTest, www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. |
From: Ype K. <yk...@xs...> - 2001-09-21 17:56:20
|
Frank, >Some newbie questions. Thanks, in advance, for answering them. > >1) How do I find implemented methods and objects? For example, A Python book You can use: dir(o) dir(o.__class__) >shows how to use thread.start_new(count, (i, 3)) which generates this error: >AttributeError: class "org.python.modules.thread' has no attribute >'start_new'. I'd like something - even the JavaDoc - that would help me find >and fix the problem. It's called thread.start_new_thread() (http://www.python.org/doc/current/lib/module-thread.html) >2) Does Jython have an ability to handle "include" files? For eample, I have >one Jython script that calls a Jython script file and passes control to the >new script. You can use execfile(). (http://www.python.org/doc/current/lib/built-in-funcs.html) >3) Will someone point me in the right direction to do SSL in Jython. That's more difficult: in jython you're limited to what java can offer you, and I don't recall having secure sockets in java.net. You might try to find any java implementation of secure sockets. Good luck, Ype |
From: Ted B. <te...@et...> - 2001-09-21 18:46:05
|
On Friday 21 September 2001 12:03, Ype Kingma wrote: > >3) Will someone point me in the right direction to do SSL in Jython. > > That's more difficult: in jython you're limited to what java can > offer you, and I don't recall having secure sockets in java.net. > You might try to find any java implementation of secure sockets. > As of 1.4 SSL is supported in java. I haven't played with it myself, so that's all I can tell you. JDK1.4 beta 2 is available from javasoft.com, but is not yet ready for public consumption. Personally, I've had no trouble with it. ted |
From: Frank C. <fc...@pu...> - 2001-09-22 06:28:01
|
I've been looking into the OpenSSL project. Do you know if they are the providers of the JDK 1.4 SSL? -Frank -- Frank Cohen, founder, PushToTest, www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. > From: Ted Berg <te...@et...> > Reply-To: te...@et... > Date: Fri, 21 Sep 2001 11:45:41 -0700 > To: Ype Kingma <yk...@xs...>, jyt...@li... > Subject: Re: [Jython-users] Basic newbie questions: threads, spawning apps, > SSL > > On Friday 21 September 2001 12:03, Ype Kingma wrote: > > >>> 3) Will someone point me in the right direction to do SSL in Jython. >> >> That's more difficult: in jython you're limited to what java can >> offer you, and I don't recall having secure sockets in java.net. >> You might try to find any java implementation of secure sockets. >> > > As of 1.4 SSL is supported in java. I haven't played with it myself, so > that's all I can tell you. > > JDK1.4 beta 2 is available from javasoft.com, but is not yet ready for public > consumption. Personally, I've had no trouble with it. > > > ted > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Ted B. <te...@et...> - 2001-09-23 23:21:48
|
On Friday 21 September 2001 23:27, Frank Cohen wrote: > I've been looking into the OpenSSL project. Do you know if they are the > providers of the JDK 1.4 SSL? > > -Frank I don't know, no. the 1.4 ssl stuff is in the package javax.net.ssl, IIRC. I'd imagine that it would be named differently if it were developed by someone other than Sun. ted |
From: Frank C. <fc...@pu...> - 2001-09-21 20:40:53
|
Thank you for the information. This worked great! I need to create a Java object that does a URLConnection to an SSL web site. I'll write up my notes and share it with the Jython-users list once I figure out how to do it. Thanks. -Frank -- Frank Cohen, founder, PushToTest, www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. > From: Ype Kingma <yk...@xs...> > Date: Fri, 21 Sep 2001 20:03:36 +0100 > To: jyt...@li... > Subject: Re: [Jython-users] Basic newbie questions: threads, spawning apps, > SSL > > Frank, > >> Some newbie questions. Thanks, in advance, for answering them. >> >> 1) How do I find implemented methods and objects? For example, A Python book > > You can use: > dir(o) > dir(o.__class__) > >> shows how to use thread.start_new(count, (i, 3)) which generates this error: >> AttributeError: class "org.python.modules.thread' has no attribute >> 'start_new'. I'd like something - even the JavaDoc - that would help me find >> and fix the problem. > > It's called thread.start_new_thread() > (http://www.python.org/doc/current/lib/module-thread.html) > >> 2) Does Jython have an ability to handle "include" files? For eample, I have >> one Jython script that calls a Jython script file and passes control to the >> new script. > > You can use execfile(). > (http://www.python.org/doc/current/lib/built-in-funcs.html) > >> 3) Will someone point me in the right direction to do SSL in Jython. > > That's more difficult: in jython you're limited to what java can > offer you, and I don't recall having secure sockets in java.net. > You might try to find any java implementation of secure sockets. > > Good luck, > Ype > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |