-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import lock bug #34
Comments
Simpler case: from crochet import setup, wait_for_reactor
setup()
wait_for_reactor(__import__)('sys') |
I wonder if this is something Crochet can even solve. My first thought is documenting that one shouldn't run |
... or anything called at module level. |
Perhaps |
In Python 3.3 (which is minimal supported version anyway) "The locking scheme has changed to per-module locks for the most part. A global import lock is kept for some critical tasks, such as initializing the per-module locks." Which means simply checking |
Given
sample.py
:Running
python sample.py
finished instantly, butpython -c 'import sample
fails.I suspect this might have something to do with the import lock.
The text was updated successfully, but these errors were encountered: