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

Deprecate BaseCookie.js_output() method · Issue #148849 · python/cpython · GitHub

Repository navigation

Deprecate BaseCookie.js_output() method #148849

Closed

Description

This was recommended in #90309, and @serhiy-storchaka, @encukou, and I all concurred that this method should be deprecated as it's not used (according to searching GitHub) and likely was created when <script> support in browsers was not common which is no longer the case.

Linked PRs

Activity

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    on Apr 21, 2026
  2. encukou commented on Apr 22, 2026

    Member

    IMO <script> support was common, but it was still common practice to include the “hiding” comment.
    <!-- begin hiding is still valid JS.

    I never concurred with the deprecation. What's the reason to remove this function again?

    Can we soft-deprecate it instead?

  3. serhiy-storchaka commented on Apr 22, 2026

    Member

    The problem is that it is almost not used, at least we have not find any examples in open sources. If we have no examples of use in real code, we cannot be sure that it works correctly. We cannot even be sure what is the purpose of it. We cannot maintain it.

  4. encukou commented on Apr 23, 2026

    Member

    OK, looking more into this, I see the function doesn't work correctly unless there's only one key/value pair.

    I withdraw my objection.

  5. mathaimp commented on Apr 25, 2026

    Can I work on this issue?

  6. added 2 commits that reference this issue on Apr 25, 2026
  7. added 4 commits that reference this issue on Apr 26, 2026
  8. added a commit that references this issue on May 4, 2026
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

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL