Commit d2be9a5
* The _PySys_EndInit() function now copies the
config->module_search_path list, so config is longer modified when
sys.path is updated.
* config->warnoptions list and config->xoptions dict are also copied
* test_embed: InitConfigTests now also tests
main_config['module_search_path']
* Fix _Py_InitializeMainInterpreter(): don't use config->warnoptions
but sys.warnoptions to decide if the warnings module should
be imported at startup.
(cherry picked from commit 37cd982)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent 579c417 commit d2be9a5
3 files changed
+28
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 304 | | |
309 | 305 | | |
310 | 306 | | |
| |||
315 | 311 | | |
316 | 312 | | |
317 | 313 | | |
318 | | - | |
| 314 | + | |
| 315 | + | |
319 | 316 | | |
320 | 317 | | |
321 | 318 | | |
| |||
389 | 386 | | |
390 | 387 | | |
391 | 388 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | 389 | | |
396 | 390 | | |
397 | 391 | | |
| 392 | + | |
398 | 393 | | |
399 | 394 | | |
400 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
971 | | - | |
| 970 | + | |
| 971 | + | |
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2464 | 2464 | | |
2465 | 2465 | | |
2466 | 2466 | | |
2467 | | - | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
2468 | 2481 | | |
2469 | 2482 | | |
2470 | 2483 | | |
| |||
2475 | 2488 | | |
2476 | 2489 | | |
2477 | 2490 | | |
2478 | | - | |
| 2491 | + | |
2479 | 2492 | | |
2480 | 2493 | | |
2481 | | - | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
2482 | 2500 | | |
2483 | 2501 | | |
| 2502 | + | |
| 2503 | + | |
2484 | 2504 | | |
2485 | 2505 | | |
2486 | 2506 | | |
| |||
0 commit comments