GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add SoftDeprecationWarning warning category · Issue #106137 · python/cpython

Add SoftDeprecationWarning warning category #106137

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Add SoftDeprecationWarning warning category#106137
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@vstinner
vstinner
opened on Jun 27, 2023
Issue body actions

Implementation of my proposed PEP 387 "Soft Deprecation" policy: python/peps#3182

  • Add SoftDeprecationWarning warning category
  • Ignore these warnings by default, except in the __main__ module (similar to PEP 565: Show DeprecationWarning in main)

As an example, I propose to soft deprecate the getopt module: PR #105735 (currently, the PR uses a regular "hard" deprecation).

Linked PRs

  • gh-106137: Add SoftDeprecationWarning category #106142

Activity

  1. vstinner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jun 27, 2023
  2. vstinner
    added 5 commits that reference this issue on Jun 27, 2023

    pythongh-106137: Add SoftDeprecationWarning category

    3a17c7c

    pythongh-106137: Add SoftDeprecationWarning category

    ca5cab4

    pythongh-106137: Add SoftDeprecationWarning category

    301a6ad

    pythongh-106137: Add SoftDeprecationWarning category

    a01636f

    pythongh-106137: Add SoftDeprecationWarning category

    b6dc14a
  3. terryjreedy commented on Jun 27, 2023

    @terryjreedy
    terryjreedy
    on Jun 27, 2023
    Member
    More actions

    This seems like a new feature. Is there any discussion that you can link to? Such as about the PEP?

  4. hugovk commented on Jun 27, 2023

    @hugovk
    hugovk
    on Jun 27, 2023
    Member
    More actions

    Discussion is ongoing at https://discuss.python.org/t/formalize-the-concept-of-soft-deprecation-dont-schedule-removal-in-pep-387-backwards-compatibility-policy/27957

  5. AlexWaygood
    added
    type-featureA feature request or enhancementA feature request or enhancement
    and removed
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jun 27, 2023
  6. vstinner commented on Jun 27, 2023

    @vstinner
    vstinner
    on Jun 27, 2023
    MemberAuthor
    More actions

    This seems like a new feature. Is there any discussion that you can link to? Such as about the PEP?

    Yes, see the first link in the issue :-)

    Implementation of my proposed PEP 387 "Soft Deprecation" policy: python/peps#3182

    => python/peps#3182

    Also, @hugovk gave the link to the discussion.

  7. vstinner
    added 4 commits that reference this issue on Jun 27, 2023

    pythongh-106137: Add SoftDeprecationWarning category

    9c86ddf

    pythongh-106137: Add SoftDeprecationWarning category

    ca9ff20

    pythongh-106137: Add SoftDeprecationWarning category

    1e0e98d

    pythongh-106137: Add SoftDeprecationWarning category

    eb01d78
  8. vstinner commented on Jun 30, 2023

    @vstinner
    vstinner
    on Jun 30, 2023
    MemberAuthor
    More actions

    The idea of issuing a warning for soft deprecations is not liked, so I abandon my idea: https://discuss.python.org/t/formalize-the-concept-of-soft-deprecation-dont-schedule-removal-in-pep-387-backwards-compatibility-policy/27957

  9. vstinner
    closed this as completedon Jun 30, 2023
  10. arhadthedev
    closed this as not plannedon Jun 30, 2023
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-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.