Threaded import hang in cPickle.dumps

Zac Burns zac256 at gmail.com
Tue Nov 10 13:55:25 EST 2009


Oh, I'm pickling an NotImplementedError and it's importing exceptions.
--
Zachary Burns
(407)590-4814
Aim - Zac256FL
Production Engineer (Digital Overlord)
Zindagi Games



On Tue, Nov 10, 2009 at 10:50 AM, Zac Burns <zac256 at gmail.com> wrote:
> 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