mirror of
https://github.com/python/cpython.git
synced 2026-01-29 06:06:01 +00:00
The CPython runtime assumes that there is a one-to-one relationship (for a given interpreter) between PyThreadState and OS threads. Sending and receiving on a channel in the same interpreter was causing crashes because of this (specifically due to a check in PyThreadState_Swap()). The solution is to not switch threads if the interpreter is the same.
Miscellaneous source files for the main Python shared library