multithreading

Renzo Tomaselli renzo.tomaselli at tecnotp.it
Fri Feb 21 10:33:32 EST 2003


Hi all,
assume I have a Python obj instance in a web application after
Apache+modPython.
The point is: can I assume that accessing local variables within a
method of such instance is thread-safe, e.g. syncronized by the
interpreter against concurrent invokations by multiple threads (e.g.
multiple web clients) ?
In a C++ environment, such automatic variables would be on the stack,
e.g. they would exist per-thread. But in Python they are in the heap,
so I dont't know about concurrency.
Thanks,

Renzo Tomaselli




More information about the Python-list mailing list