Threaded import hang in cPickle.dumps
Antoine Pitrou
solipsis at pitrou.net
Wed Nov 11 16:48:36 EST 2009
Le Tue, 10 Nov 2009 10:50:33 -0800, Zac Burns a écrit :
>
> 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?
Please report a bug at http://bugs.python.org
Better even if you can provide a small snippet of code which reproduces
the problem reliably.
Regards
Antoine.
More information about the Python-list
mailing list