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
python hangs if import statement launches threads #41793
Comments
(This bug looks similar to bug 1175194, but reports a different I have a simple module which launches multiple HTTP client threads. The main thread creates 10 HTTP clients, each of which fetches If I launch the script via But if I launch the script via Here's an example: jps@cure> ./python -c 'import bug1' Each thread prints a character every time that it does something You might argue that it's inappropriate to launch threads from within Here's a trace of the last few syscalls before it hangs (pids are Please note that this bug is similar to bug 1175194, but reports a |
Logged In: YES This is not a bug. The import statement returns when the run(10) completes. As the run method has a very long sleep, the Furthermore, Python serializes all import statements, with a Closing as "won't fix". |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: