New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postpone configparser deprecations until 3.12 #89336
Comments
|
In the configparser module, these have been deprecated since Python 3.2:
They can be removed in Python 3.11. |
|
Also, the LegacyInterpolation class is deprecated since Python 3.2 but with no DeprecationWarning. A quick sampling of GitHub results shows only copies of CPython's configparser.py and test_configparser.py No use found in the top 200 PyPI packages. Is it safe to remove now, or should it raise DeprecationWarning for a couple of releases first? |
|
Searching 4,764 sdists from the top 5,000 PyPI packages, these 13 contain "LegacyInterpolation": The first two are stdlib backports: configparser is active and configparser2 was last updated in 2015: The others are all configparser.pyi typeshed stub files: |
|
Per https://mail.python.org/archives/list/python-dev@python.org/thread/GJTREADEXYAETECE5JDTPYWK4WMTKYGR/ we want to revert 1fc41ae for 3.11 to avoid causing pain. per that thread and https://discuss.python.org/t/experience-with-python-3-11-in-fedora/12911 it sounds like you may be on top of filing upstream issues/PRs to get OSS projects to stop using the deprecated APIs. great! that should help this stick in 3.12. as the commit removed several things at once, I suggest a full rollback, and smaller PRs for individual things if your upstream python project testing reveals things that nobody appears to be depending on. |
Other removed symbols are causing troubles, like SafeConfigParser. Example of Fedora bz #2025600: mom fails to build with Python 3.11: AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. => https://bugzilla.redhat.com/show_bug.cgi?id=2025600 Another example: python-iniparse fails to build with Python 3.11: AttributeError: 'RawConfigParser' object has no attribute 'readfp' https://bugzilla.redhat.com/show_bug.cgi?id=2019017 You can try to unfold https://bugzilla.redhat.com/buglist.cgi?bug_id=2016048&bug_id_type=anddependson&format=tvp and search for "configparser". |
|
Currently, the issue title is "Remove configparser deprecations". #75110 doesn't remove deprecated functions, but adds new warnings. It's really confusing to make this change as part of this issue. Can you please create a new issue for #75110 "bpo-45173: Add DeprecationWarning to LegacyInterpolation"? If it's removed, it's not going to be removed before Python 3.13, so it's not directly related to this issue. By the way, it would be nice explain the rationale for removing it. |
|
Sure, please see https://bugs.python.org/issue46607. I've rebased #75110 to use the new issue number. |
|
This ended up being a postponement until 3.12. I've updated the title and let's close this issue and make a new removal issue for 3.12. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: