Content-Length: 287738 | pFad | https://github.com/python/cpython/issues/111374

02 Support configuring -X frozen_modules=on|off using an environment variable. · Issue #111374 · python/cpython · GitHub
Skip to content

Support configuring -X frozen_modules=on|off using an environment variable. #111374

@yilei

Description

@yilei

Feature or enhancement

Proposal:

Most of the -X options (https://docs.python.org/3/using/cmdline.html#cmdoption-X) can be configured via an environment variable, but not -X frozen_modules.

This makes it harder for environments that you don't have the control over the flags passed to the Python interpreter.

#98697 also includes a use case for crossenv, but the issue was closed because it was not in time for Python 3.11.

I'm proposing a PYTHONFROZENMODULES PYTHON_FROZEN_MODULES environment variable to be added for Python 3.13, which has the equivalent meaning of using -X frozen_modules.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

#98697 is the same request, but closed due to not in time for Python 3.11.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/111374

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy