https://github.com/python/cpython/commit/01de4af3e18992d3aad12dbe5d23dbb19602609d
commit: 01de4af3e18992d3aad12dbe5d23dbb19602609d
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2025-01-21T12:02:38+01:00
summary:

gh-126925: Make PyConfig.use_system_logger read-only (#129124)

The variable is only used once during early Python initialization, it
doesn't make sense to modify it at runtime.

files:
M Python/initconfig.c

diff --git a/Python/initconfig.c b/Python/initconfig.c
index 7851b86db1f6d0..4db77ef47d2362 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -169,7 +169,7 @@ static const PyConfigSpec PYCONFIG_SPEC[] = {
     SPEC(use_frozen_modules, BOOL, READ_ONLY, NO_SYS),
     SPEC(use_hash_seed, BOOL, READ_ONLY, NO_SYS),
 #ifdef __APPLE__
-    SPEC(use_system_logger, BOOL, PUBLIC, NO_SYS),
+    SPEC(use_system_logger, BOOL, READ_ONLY, NO_SYS),
 #endif
     SPEC(user_site_directory, BOOL, READ_ONLY, NO_SYS),  // 
sys.flags.no_user_site
     SPEC(warn_default_encoding, BOOL, READ_ONLY, NO_SYS),

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to