Threaded import hang in cPickle.dumps

Zac Burns zac256 at gmail.com
Tue Nov 10 13:50:33 EST 2009


Using python 2.6

cPickle.dumps has an import which is causing my application to hang.
(figured out by overriding builtin.__import__ with a print and seeing
that this is the last line of code being run. I'm running
cPickle.dumps in a thread, which leads me to believe that the first
restriction here is the cause:
http://docs.python.org/library/threading.html#importing-in-threaded-code

What can I do about this?

--
Zachary Burns
(407)590-4814
Aim - Zac256FL
Production Engineer (Digital Overlord)
Zindagi Games



More information about the Python-list mailing list