bpo-32652: Defer pymain_set_global_config() call (#5303) · python/cpython@2b822a0 · GitHub
Skip to content

Commit 2b822a0

Browse files
authored
bpo-32652: Defer pymain_set_global_config() call (#5303)
In Py_Main(), don't call pymain_set_global_config() early: only call it when the whole configuration has been read. Add an unit test to prevent future regression.
1 parent cab0b2b commit 2b822a0

2 files changed

Lines changed: 27 additions & 14 deletions

File tree

Lib/test/test_utf8_mode.py

Lines changed: 15 additions & 0 deletions

Modules/main.c

Lines changed: 12 additions & 14 deletions

0 commit comments

Comments
 (0)