This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbt
Recipients arigo, dmi.baranov, gregory.p.smith, pitrou, sbt
Date 2013-06-03.10:24:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370255083.92.0.225857361837.issue18122@psf.upfronthosting.co.za>
In-reply-to
Content
Forking as a side effect of importing a module is evil.  I think raising a RuntimeError is preferable to trying to make it Just Work.

But maybe one could do

    void
    _PyImport_ReInitLock(void)
    {
        if (import_lock != NULL) {
            import_lock = PyThread_allocate_lock();
            PyThread_acquire_lock(import_lock, WAIT_LOCK);
        }
        import_lock_thread = PyThread_get_thread_ident();
        _PyImport_ReleaseLock();
    }
History
Date User Action Args
2013-06-03 10:24:43sbtsetrecipients: + sbt, arigo, gregory.p.smith, pitrou, dmi.baranov
2013-06-03 10:24:43sbtsetmessageid: <1370255083.92.0.225857361837.issue18122@psf.upfronthosting.co.za>
2013-06-03 10:24:43sbtlinkissue18122 messages
2013-06-03 10:24:43sbtcreate