This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients docs@python, martin.panter
Date 2016-12-18.10:52:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482058351.49.0.0302572495626.issue29004@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-12-18 10:52:31martin.pantersetrecipients: + martin.panter, docs@python
2016-12-18 10:52:31martin.pantersetmessageid: <1482058351.49.0.0302572495626.issue29004@psf.upfronthosting.co.za>
2016-12-18 10:52:31martin.panterlinkissue29004 messages
2016-12-18 10:52:31martin.pantercreate