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 |