Skip to content

Commit

Permalink
pythongh-126925: Make PyConfig.use_system_logger read-only
Browse files Browse the repository at this point in the history
The variable is only used once during early Python initialization, it
doesn't make sense to modify it at runtime.
  • Loading branch information
vstinner committed Jan 21, 2025
1 parent 1744d67 commit d46aa6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/initconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit d46aa6f

Please sign in to comment.