You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixed in main, thanks for the PR. I don't personally think this is important enough to put in a bugfix release, if someone finds a practical reason to do so, feel free to hit the backport buttons.
Right now
_DummyThread
claims to not allowjoin
:cpython/Lib/threading.py
Lines 1453 to 1458 in fb0d9b9
But, it can be easily changed with
python -OO
mode, which stripsassert
statements.The easiest way to check this is:
python ex.py
results in:But,
python -OO ex.py
results in:This looks like an important behavior change. I propose to use explicit
AssertionError
/RuntimeError
instead.I have a PR ready.
Linked PRs
assert
withraise RuntimeError
inthreading.py
#106237The text was updated successfully, but these errors were encountered: