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@python
components: Documentation
files: crc-ccitt.patch
keywords: patch
messages: 283548
nosy: docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29004>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to