-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Remove deprecated _dummy_thread and dummy_threading modules #81493
Comments
The _dummy_thread and dummy_threading modules are deprecated since Python 3.7 which now requires threading support. Attached PR removes these modules. |
Python 3.7 has been modified to always require threading support:
commit a6a4dc8
-- In Python 3.8, the dummy_threading module is documented as: "This module provides a duplicate interface to the threading module. It was meant to be imported when the _thread module was not provided on a platform. Be careful to not use this module where deadlock might occur from a thread being created that blocks waiting for another thread to be created. This often occurs with blocking I/O." https://docs.python.org/dev/library/dummy_threading.html And the doc starts with: "Deprecated since version 3.7: Python now always has threading enabled. Please use threading instead." IMHO it's now time to remove this module. -- I proposed to remove these modules today after I saw a bug on _dummy_thread: bpo-36688. |
Bye bye dummy_threading. As explained in PR 14143, I kept a reference to dummy_threading in 2to3 on purpose. Keep it there is fine, it helps to port legacy Python 2 code to Python 3. |
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: