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 |