From: Silvio A. <sar...@mo...> - 2001-08-07 09:11:45
|
Hello everybody! I'm new to this list: my name is Silvio, I am Italian and I'm currently working in France. I discovered Python and Jython just two weeks ago: I am using Python to test the APIs of a server platform (CPython for the C API and Jython for the Java one). By now I always found a way to use the same scripts for both CPython and Jython (developing the CPython extension module to emulate the behavior of the Java API). Now I should implement some multi thread tests, but I saw that Python language doesn't support multi thread (at least from what I understood). The only way i could think of for doing it is embedding CPython in a C program that handles the threads using the Python API, and embedding Jython into a Java program that does the same (would it work?). This would lead to very different ways of implementing the tests for the two APIs. Is there any simplest way? bye, Silvio. |