This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2018-07-25.00:58:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532480331.19.0.56676864532.issue34170@psf.upfronthosting.co.za>
In-reply-to
Content
I added many fields to _PyCoreConfig which duplicate global configuration varibles: _PyConfigCore.isolated duplicates Py_IsolatedFlag.

I started to modify Python to read the core configuration rather than global configuration flags. The problem is that sometimes, global configuration flags are updated, but not their duplicated core configuration fields.

Example from Modules/main.c:

static void
pymain_repl(_PyMain *pymain, _PyCoreConfig *config, PyCompilerFlags *cf)
{
    /* Check this environment variable at the end, to give programs the
       opportunity to set it from Python. */
    if (!Py_InspectFlag && config_get_env_var(config, "PYTHONINSPECT")) {
        Py_InspectFlag = 1;
    }
    ...
}

Only Py_InspectFlag is not, not core_config.inspect.
History
Date User Action Args
2018-07-25 00:58:51vstinnersetrecipients: + vstinner
2018-07-25 00:58:51vstinnersetmessageid: <1532480331.19.0.56676864532.issue34170@psf.upfronthosting.co.za>
2018-07-25 00:58:51vstinnerlinkissue34170 messages
2018-07-25 00:58:50vstinnercreate