From: Neil B. <nei...@ca...> - 2001-04-10 13:40:43
|
Hello, Here's a poser, wonder if anyone could help me:- I'm trying to get scripts to declare their interface via some method. I've tried to use inspect in Jython but I can't get it to work (I can in Python though) which leads me to think that inspect doesn't work in Jython. I could maybe use the reflection of java to interrogate the bytecode generated by Jython but this would hinder me in the future when I need to expand the application for compatibility with other scripting languages (it's a sad fact of life that I need to incorporate JavaScript and/or vbscript for OSA implementation). Therefore I'm looking for a pythonesque way returning the functions defined in a script. Has anyone done this or could you possibly point me in the right direction of how to do this. Any/all help greatly appreciated. Cheers, Neil |