Eric Snow
b3d25df8d3
gh-105716: Fix _PyInterpreterState_IsRunningMain() For Embedders (gh-117140)
...
When I added _PyInterpreterState_IsRunningMain() and friends last year, I tried to accommodate applications that embed Python but don't call _PyInterpreterState_SetRunningMain() (not that they're expected to). That mostly worked fine until my recent changes in gh-117049, where the subtleties with the fallback code led to failures; the change ended up breaking test_tools.test_freeze, which exercises a basic embedding situation.
The simplest fix is to drop the fallback code I originally added to _PyInterpreterState_IsRunningMain() (and later to _PyThreadState_IsRunningMain()). I've kept the fallback in the _xxsubinterpreters module though. I've also updated Py_FrozenMain() to call _PyInterpreterState_SetRunningMain().
2024-03-21 18:20:20 -06:00
..
2024-02-12 09:04:36 +00:00
2024-03-18 09:37:48 +00:00
2023-12-20 14:27:25 +00:00
2024-01-16 09:32:01 +00:00
2024-01-16 09:32:01 +00:00
2024-03-07 11:21:08 +02:00
2023-09-30 22:21:20 +00:00
2024-02-20 09:57:48 -05:00
2024-03-15 17:16:30 +00:00
2024-03-21 11:21:02 -07:00
2024-03-01 07:46:33 +01:00
2024-03-19 09:20:38 +00:00
2023-11-30 11:12:49 +01:00
2024-03-19 09:20:38 +00:00
2024-02-02 13:50:51 +00:00
2024-02-16 01:01:36 +00:00
2023-11-08 15:39:29 -07:00
2024-02-13 14:56:49 -07:00
2024-02-13 14:56:49 -07:00
2024-03-14 18:17:43 +00:00
2023-12-07 13:47:55 +00:00
2023-09-02 16:50:18 +02:00
2023-10-04 22:50:29 +00:00
2023-10-04 22:50:29 +00:00
2023-10-04 22:50:29 +00:00
2023-10-04 22:50:29 +00:00
2023-09-08 17:54:45 +01:00
2023-09-15 15:04:21 -07:00
2023-12-21 01:46:41 +00:00
2024-03-15 17:16:30 +00:00
2023-12-12 11:25:27 +01:00
2024-02-22 12:36:44 +00:00
2024-03-12 23:35:28 +00:00
2024-03-18 11:13:11 -07:00
2024-03-21 18:20:20 -06:00
2024-03-20 08:54:42 +00:00
2024-02-14 00:32:51 +00:00
2024-03-20 08:54:42 +00:00
2024-03-15 17:16:30 +00:00
2024-03-08 13:49:52 +03:00
2024-01-16 21:54:05 +01:00
2023-09-29 10:56:49 +02:00
2023-12-06 15:09:22 +01:00
2024-03-20 08:54:42 +00:00
2023-10-04 22:50:29 +00:00
2024-03-19 23:30:25 +02:00
2024-03-04 11:29:39 -05:00
2023-11-14 00:31:02 +00:00
2024-03-19 08:47:28 -07:00
2023-11-03 16:39:50 +00:00
2024-03-16 13:56:30 +01:00
2024-01-16 18:05:15 +02:00
2023-10-11 14:44:06 +03:00
2023-09-03 18:54:27 +02:00
2024-02-16 01:01:36 +00:00
2024-03-08 00:21:21 +08:00
2024-03-21 12:37:41 -07:00
2024-03-21 12:37:41 -07:00
2024-03-21 12:37:41 -07:00
2024-03-05 15:06:00 +00:00
2024-03-21 12:37:41 -07:00
2024-03-08 15:26:36 -05:00
2023-09-29 10:56:49 +02:00
2023-12-21 19:28:55 +00:00
2023-12-06 15:09:22 +01:00
2024-03-21 11:21:02 -07:00
2024-03-21 18:20:20 -06:00
2023-09-01 18:36:53 +02:00
2023-09-02 23:15:54 +02:00
2023-09-06 15:56:08 +02:00
2024-03-07 11:21:08 +02:00
2023-12-11 11:44:22 +00:00
2024-03-07 11:21:08 +02:00
2024-03-18 17:13:01 +01:00
2024-03-08 12:39:53 -05:00
2024-03-22 01:27:46 +08:00
2024-01-08 15:10:45 +00:00
2024-02-11 12:45:58 +02:00
2024-01-11 20:31:24 +02:00
2024-02-17 12:06:31 +00:00
2024-03-11 11:02:58 -04:00
2024-02-28 13:58:25 +00:00
2023-11-04 13:59:24 +00:00
2024-03-16 11:10:37 +01:00
2024-02-21 11:46:00 +01:00
2024-03-13 23:53:32 +01:00
2024-01-16 09:32:01 +00:00
2023-09-06 15:56:08 +02:00
2023-11-01 22:55:10 +00:00