Content-Length: 297967 | pFad | https://github.com/python/cpython/issues/93103

01 [C API] Deprecate Global Configuration Variables like Py_IgnoreEnvironment · Issue #93103 · python/cpython · GitHub
Skip to content

[C API] Deprecate Global Configuration Variables like Py_IgnoreEnvironment #93103

@vstinner

Description

@vstinner

PEP 587 "Python Initialization Configuration" got implemented in Python 3.8: https://peps.python.org/pep-0587/ It adds a new PyConfig API which is more complete and reliable than the legacy API to initialize Python: Py_Initialize() with a scattered collection of global variables and some "Set" functions like Py_SetPath().

In Python 3.11, I deprecated functions like Py_SetPath() and Py_SetStandardStreamEncoding(): https://docs.python.org/dev/c-api/init.html#c.Py_SetPath

I now propose to deprecate global configuration variables like Py_IgnoreEnvironment: PyConfig members should be used instead.

PR: #93943 merged as commit 0ff626f

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    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/93103

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy