bpo-42260: PyConfig_Read() only parses argv once (GH-23168)
The PyConfig_Read() function now only parses PyConfig.argv arguments once: PyConfig.parse_argv is set to 2 after arguments are parsed. Since Python arguments are strippped from PyConfig.argv, parsing arguments twice would parse the application options as Python options. * Rework the PyConfig documentation. * Fix _testinternalcapi.set_config() error handling. * SetConfigTests no longer needs parse_argv=0 when restoring the old configuration.
V
Victor Stinner committed
dc42af8fd16b10127ce1fc93c13bc1bfd2674aa2
Parent: f3cb814
Committed by GitHub <noreply@github.com>
on 11/5/2020, 5:58:07 PM