Skip to content
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

Remove deprecated logging.Logger.warn() method in Python 3.13 #105376

Closed
vstinner opened this issue Jun 6, 2023 · 1 comment
Closed

Remove deprecated logging.Logger.warn() method in Python 3.13 #105376

vstinner opened this issue Jun 6, 2023 · 1 comment
Labels
type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

vstinner commented Jun 6, 2023

The logging.Logger.warn() method was deprecated in Python 3.3 by issue #57444 and commit 04d5bc0. This method is not documented and emits a DeprecationWarning since Python 3.3.

#57444 (comment):

That's deliberate. The original code (before incorporation into Python) had warn(), which was kept for backward compatibility. The docs refer to warning() because that's what everyone is supposed to use. The method names map to the lower case of the appropriate logging level name.

I propose to remove this logging.Logger.warn() method in Python 3.13.

Linked PRs

@vstinner vstinner added the type-bug An unexpected behavior, bug, or error label Jun 6, 2023
vstinner added a commit to vstinner/cpython that referenced this issue Jun 6, 2023
@vstinner
Copy link
Member Author

vstinner commented Jun 6, 2023

cc @vsajip

The alternative is to remove the deprecation and keep this alias: see issue #105373.

vstinner added a commit to vstinner/cpython that referenced this issue Jun 6, 2023
@vstinner vstinner closed this as completed Jun 9, 2023
vstinner added a commit to vstinner/cpython that referenced this issue Jul 8, 2023
fernandoataoldotcom added a commit to GlueOps/terraform-cloud-backup that referenced this issue Dec 18, 2023
this likely won't affect us for a while, but might as well clean it up
python/cpython#105376
fernandoataoldotcom added a commit to GlueOps/terraform-cloud-backup that referenced this issue Dec 18, 2023
this likely won't affect us for a while, but might as well clean it up
python/cpython#105376
hroncok added a commit to hroncok/pyzmq that referenced this issue Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant