Skip to content

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