Re: Different execution time in python code between embedded or standalone

2008-06-08 Thread Pau Freixes
HI list, I found the problem guys, when I embedded python code didn't call to PyEval_InitThreads(); This function initialize GIL and other data structures for do a python code thread safe. I believe the python traditional ( python name_script.py ) run always a thread safe interpreter. Therefore,

Re: Different execution time in python code between embedded or standalone

2008-06-04 Thread Pau Freixes
Hi Gabriel, The source code for embedded mode it's the same, look this code : _nrdigest = 0 _const_b = 20 _f = None _signal = False def handler_alrm(signum, frame): global _signal global _nrdigest global _f _signal = True def try_me(): global _nrdigest global _f g

Re: Different execution time in python code between embedded or standalone

2008-06-03 Thread Gabriel Genellina
En Tue, 03 Jun 2008 16:58:12 -0300, Pau Freixes <[EMAIL PROTECTED]> escribió: Hi list, First Hello to all, this is my and hope not end message to the list :P This last months I have been writting a program in c like to mod_python for embedding python language, it's a middleware for dispat

Different execution time in python code between embedded or standalone

2008-06-03 Thread Pau Freixes
Hi list, First Hello to all, this is my and hope not end message to the list :P This last months I have been writting a program in c like to mod_python for embedding python language, it's a middleware for dispatch and execute python batch programs into several nodes. Now I'm writing some python