TypeError: 'NoneType' object is not callable

Atul Kshirsagar atulkshirsagar at yahoo.com
Mon Mar 15 02:54:39 EST 2004


Hello,
I am using Python 2.3.2 with a C++ extention DLL in 
muti-threaded environment.

1. For each new thread I create a separate
sub-interpreter. 
2. Each thread executes multiple python statements
calling the class objects in my extention DLL.
3. Before each execution I import my extention module
using;
import myModule
4. I destoy each sub-interpreter at the end of that
particular thread.
5. Python initialization and finalization happens in
the main thread.

I am observing that;
As explained above when multiple threads are running.
And as one of these threads finishes, in other running
threads I start getting "TypeError: 'NoneType' object
is not callable" error on the methods called on class
objects in extention module.

Does anyone know why this might be happening ? Is
there any specific way I should be using Python and
Extention modules in multi-threaded environment ?

Any help is appreciated !!!
Thanks,
Atul Kshirsagar

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com




More information about the Python-list mailing list