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

Merged
merged 1 commit into from
Sep 2, 2021
Merged

bpo-45085: Remove the binhex module #28117

merged 1 commit into from
Sep 2, 2021

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 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!

@ambv ambv merged commit a806608 into python:main Sep 2, 2021
@vstinner vstinner deleted the remove_binhex branch September 21, 2021 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants