[docs] [issue29004] binascii.crc_hqx() implements CRC-CCITT

Martin Panter report at bugs.python.org
Sun Dec 18 05:52:31 EST 2016


New submission from Martin Panter:

If I had known this it would have saved me getting a separate implementation working.

>>> hex(binascii.crc_hqx(b"\x01", 0))
'0x1021'
https://files.stairways.com/other/binhex-40-specs-info.txt

Documenting this might helped many other people. Top Google hits seem oblivious to crc_hqx(), using other CRC implementations, and even other helper functions from the binascii module:

https://pypi.python.org/pypi/crc16
http://stackoverflow.com/questions/26204060/calculate-crc-ccitt-0xffff-for-hex-string

----------
assignee: docs at python
components: Documentation
files: crc-ccitt.patch
keywords: patch
messages: 283548
nosy: docs at python, martin.panter
priority: normal
severity: normal
stage: patch review
status: open
title: binascii.crc_hqx() implements CRC-CCITT
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45952/crc-ccitt.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29004>
_______________________________________


More information about the docs mailing list