FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-158001: Remove global configuration variables from C API by vstinner · Pull Request #158020 · python/cpython · GitHub

Repository navigation

gh-158001: Remove global configuration variables from C API - #158020

Merged
vstinner merged 10 commits into
python:mainfrom
vstinner:remove_global_config
Sep 24, 2026
Merged

vstinner merged 10 commits into
python:mainfrom
vstinner:remove_global_config

Conversation

vstinner commented Sep 23, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Keep 4 variables in the stable ABI:

  • Py_FileSystemDefaultEncodeErrors
  • Py_FileSystemDefaultEncoding
  • Py_HasFileSystemDefaultEncoding
  • Py_UTF8Mode

Keep 4 variables in the stable ABI:

* Py_FileSystemDefaultEncodeErrors
* Py_FileSystemDefaultEncoding
* Py_HasFileSystemDefaultEncoding
* Py_UTF8Mode

Copy link
Copy Markdown
Member Author

This PR is based on #158014 which prepared the code base for this large removal.

I leave Doc/deprecations/c-api-pending-removal-in-3.16.rst unchanged, since this file is include by What's New in Python 3.12/13/14.

read-the-docs-community Bot commented Sep 23, 2026 •
edited
Loading

Copy link
Copy Markdown

* test_capi.test_config: Remove test_config_set_global_vars().
* test_ctypes: Get Py_Version variable instead of Py_OptimizeFlag.
Mark the 4 variables as abi_only in Misc/stable_abi.toml.
vstinner requested a review from encukou as a code owner September 23, 2026 20:49
vstinner merged commit 7242fea into python:main Sep 24, 2026
55 checks passed
vstinner deleted the remove_global_config branch September 24, 2026 14:42

hugovk commented Sep 25, 2026

Copy link
Copy Markdown
Member

Looks like this might be causing s390x buildbots to fail.

Copy link
Copy Markdown
Member Author

Looks like this might be causing s390x buildbots to fail.

Ooops, correct. I introduced a bug in test_ctypes.test_version_var() which is visible on big endian machines such as s390x.

I wrote PR gh-158193 to fix test_ctypes.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL