Skip to content

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

Description

@vstinner

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions