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

bpo-45085: Remove the binhex module #28117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Sep 1, 2021

The binhex module, deprecated in Python 3.9, is now removed. The
following binascii functions, deprecated in Python 3.9, are now also
removed:

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

The binascii.crc_hqx() function remains available.

https://bugs.python.org/issue45085

The binhex module, deprecated in Python 3.9, is now removed. The
following binascii functions, deprecated in Python 3.9, are now also
removed:

* a2b_hqx(), b2a_hqx();
* rlecode_hqx(), rledecode_hqx().

The binascii.crc_hqx() function remains available.
@vstinner
Copy link
Member Author

@vstinner vstinner commented Sep 1, 2021

Interesting part of this PR: it removes "binhex" from sys.stdlib_module_names ;-)

Without this change:

$ ./python -c 'import sys; print(len(sys.stdlib_module_names))'
304

With this change:

$ ./python -c 'import sys; print(len(sys.stdlib_module_names))'
303

One less stdlib module!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants