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 — Remove the binhex module, binhex4 and hexbin4 standards · Issue #89248 · python/cpython

Remove the binhex module, binhex4 and hexbin4 standards #89248

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove the binhex module, binhex4 and hexbin4 standards#89248
Copy link
Labels
3.11only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

Description

@vstinner
vstinner
opened on Sep 1, 2021
Issue body actions
BPO 45085
Nosy @vstinner, @ambv, @serhiy-storchaka
PRs
  • bpo-45085: Remove the binhex module #28117
  • 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:

    assignee = None
    closed_at = <Date 2021-09-02.10:24:56.986>
    created_at = <Date 2021-09-01.22:44:58.498>
    labels = ['library', '3.11']
    title = 'Remove the binhex module, binhex4 and hexbin4 standards'
    updated_at = <Date 2021-09-02.10:24:56.985>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-09-02.10:24:56.985>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-02.10:24:56.986>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2021-09-01.22:44:58.498>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45085
    keywords = ['patch']
    message_count = 6.0
    messages = ['400878', '400880', '400881', '400882', '400907', '400909']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'lukasz.langa', 'serhiy.storchaka']
    pr_nums = ['28117']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45085'
    versions = ['Python 3.11']

    Activity

    Next
    1. vstinner commented on Sep 1, 2021

      @vstinner
      vstinner
      on Sep 1, 2021
      MemberAuthor
      More actions

      The binhex module was deprecated in Python 3.9 by bpo-39353 (commit beea26b). I propose to remove it: see attached PR.

      The PR also removes the following binascii functions, also deprecated in Python 3.9:

      • a2b_hqx(), b2a_hqx()
      • rlecode_hqx(), rledecode_hqx()

      The binascii.crc_hqx() function remains available.

    2. vstinner
      added
      3.11only security fixesonly security fixes
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      on Sep 1, 2021
    3. vstinner commented on Sep 1, 2021

      @vstinner
      vstinner
      on Sep 1, 2021
      MemberAuthor
      More actions

      See also the PEP-594: Removing dead batteries from the standard library
      https://www.python.org/dev/peps/pep-0594/

    4. vstinner commented on Sep 1, 2021

      @vstinner
      vstinner
      on Sep 1, 2021
      MemberAuthor
      More actions

      The binhex module was deprecated in Python 3.9 by bpo-39353 (commit beea26b). I have been asked there to keep binascii.crc_hqx() (not deprecated it).

    5. vstinner commented on Sep 1, 2021

      @vstinner
      vstinner
      on Sep 1, 2021
      MemberAuthor
      More actions

      In bpo-39353, Serhiy Storchaka proposed: "But it would be nice to create a separate package on PyPI that provides such functionality before removing it from the stdlib."

      The purpose of the PEP-594 is to reduce the Python maintenance burden. Publishing a module on PyPI introduces a new maintenance burden, even if there is no plan to ever update the package.

      The PEP-594 is still a draft. So far, there was no agreement on the strategy to remove anything from the stdlib.

      In past, other stdlib modules have been removed silently and nobody complained. Likely because nobody used them. For example, the the Python 2 CDROM module of the old Lib/plat-linux2/ directory (CDROM.py, DLFCN.py, IN.py, regen, TYPES.py).

      If someone uses the binhex module, I suggest users to create a new project on PyPI to support binhex. Users who need binhex are likely the most motivated to *maintain* such code. You can start by copying Python 3.10 code.

    6. ambv commented on Sep 2, 2021

      @ambv
      ambv
      on Sep 2, 2021
      Contributor
      More actions

      New changeset a806608 by Victor Stinner in branch 'main':
      bpo-45085: Remove the binhex module (GH-28117)
      a806608

    7. ambv commented on Sep 2, 2021

      @ambv
      ambv
      on Sep 2, 2021
      Contributor
      More actions

      Agreed with Victor. I'd go with the "traditional" flow of PendingDeprecationWarning in 3.9, DeprecationWarning in 3.10, and removal in 3.11; but since we kept DeprecationWarning for two releases, it's pretty much the same and fine to remove it now.

    8. ambv
      closed this as completedon Sep 2, 2021
    9. ambv
      closed this as completedon Sep 2, 2021
    10. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    11. veit
      added 2 commits that reference this issue on Sep 15, 2025

      📝 Remove deprecated Binhex module

      72c28e4

      📝 Remove deprecated Binhex module

      fe5237a
    12. 2 remaining items

    13. veit
      added 15 commits that reference this issue on Sep 15, 2025

      📝 Remove deprecated Binhex module

      9a40d3b

      📝 Remove deprecated Binhex module

      6a26741

      Remove deprecated Binhex module

      47d5c73

      Remove deprecated Binhex module

      88b219d

      📝 Remove deprecated Binhex module

      dfcb9b8

      Remove deprecated Binhex module

      d285389

      Remove deprecated Binhex module

      91cc4c9

      📝 Remove deprecated Binhex module

      b23f50d

      📝 Remove deprecated Binhex module

      7aee58d

      Remove deprecated Binhex module

      fc99d29

      📝 Remove deprecated Binhex module

      5d99b86

      Remove deprecated Binhex module

      0c40e3c

      📝 Remove deprecated Binhex module

      7fcf854

      Remove deprecated Binhex module

      7487d4b

      📝 Remove deprecated Binhex module

      2d32b1c
    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

      3.11only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        You are visitor 01402503 — 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.