Threaded import hang in cPickle.dumps

Discussion in 'Python' started by Zac Burns, Nov 10, 2009.

  1. Zac Burns

    Zac Burns Guest

    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
    Zac Burns, Nov 10, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jeff101
    Replies:
    3
    Views:
    2,945
    Mark Broadbent
    Jun 6, 2005
  2. jhon
    Replies:
    0
    Views:
    320
  3. Victor Kryukov
    Replies:
    8
    Views:
    465
    Gabriel Genellina
    May 17, 2007
  4. Kenneth Dombrowski

    cPickle segfault with nested dicts in threaded env

    Kenneth Dombrowski, Sep 8, 2010, in forum: Python
    Replies:
    3
    Views:
    240
    Kenneth Dombrowski
    Sep 9, 2010
Loading...

Share This Page