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 dmaurer
Recipients dmaurer
Date 2022-04-07.09:34:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Apparently, the explanation is not that easy: `_stop` first sets `_is_stopped` to `True` and only then `_tstate_lock` to `None`. Therefore, the race should not cause the `AssertionError`.

I observed the `AssertionError` in Python 3.6. The related `threading` code is however almost identical to that in Python 3.11.
Date User Action Args
2022-04-07 09:34:45dmaurersetrecipients: + dmaurer
2022-04-07 09:34:45dmaurersetmessageid: <>
2022-04-07 09:34:45dmaurerlinkissue47246 messages
2022-04-07 09:34:45dmaurercreate