[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2021-09-01 Thread STINNER Victor
Change by STINNER Victor : -- title: Deprecate the binhex module -> Deprecate the binhex module, binhex4 and hexbin4 standards ___ Python tracker ___ _

[issue39353] Deprecate the binhex module

2021-09-01 Thread STINNER Victor
Change by STINNER Victor : -- title: Deprecate the binhex module, binhex4 and hexbin4 standards -> Deprecate the binhex module ___ Python tracker ___ _

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-30 Thread Martin Panter
Martin Panter added the comment: Thanks Victor -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-30 Thread STINNER Victor
STINNER Victor added the comment: binascii.crc_hqx() is no longer deprecated. I close again the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset c38fd0df2b4cbc1cc906d8dfe23f63b67cd6965f by Victor Stinner in branch 'master': bpo-39353: binascii.crc_hqx() is no longer deprecated (GH-18276) https://github.com/python/cpython/commit/c38fd0df2b4cbc1cc906d8dfe23f63b67cd6965f -- _

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-30 Thread STINNER Victor
STINNER Victor added the comment: > Of course I would prefer “crc_hqx” to stay, because we use it at work. I propose to deprecate it because I understood that it was strictly related to binhex4 and hexbin4 protocols. If there is an use case outside these protocols, I'm fine with maintaining i

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17651 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/18276 ___ Python tracker ___ __

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-24 Thread Martin Panter
Martin Panter added the comment: Of course I would prefer “crc_hqx” to stay, because we use it at work. But I understand if you think it is not popular enough to justify maintaining it. But I was more asking if the deprecation notice should point the way forward. This function is no longer re

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-24 Thread STINNER Victor
STINNER Victor added the comment: > Building and verifying the checksum in "RTA protocol" that uses this: (...) Are you simply asking to not deprecate binascii.crc_hqx()? -- ___ Python tracker _

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread Martin Panter
Martin Panter added the comment: Building and verifying the checksum in "RTA protocol" that uses this: . But I understand CRC-CCITT is one of the two popular 16-bit CRC polynomials, used in m

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: > Is there a recommended replacement for calculating CRC-CCITT? Do it yourself > in Python code, or use a particular external module? What is your use case? -- ___ Python tracker

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread Martin Panter
Martin Panter added the comment: Is there a recommended replacement for calculating CRC-CCITT? Do it yourself in Python code, or use a particular external module? -- nosy: +martin.panter ___ Python tracker

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: > I agree with deprecating binhex. Good :-) It's now deprecated. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset beea26b57e8c80f1eff0f967a0f9d083a7dc3d66 by Victor Stinner in branch 'master': bpo-39353: Deprecate the binhex module (GH-18025) https://github.com/python/cpython/commit/beea26b57e8c80f1eff0f967a0f9d083a7dc3d66 --

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with deprecating binhex. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: BinHex format: https://en.wikipedia.org/wiki/BinHex The question here is not only if binhex remains popular, but more generally if we want to continue to maintain it forever. Each module has a cost on the overall Python maintenance burden. -- _

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka asked: https://github.com/python/cpython/pull/18025#issuecomment-575645748 """ What is a benefit of deprecating it? This module is a high-level interface to several functions in the binascii module. This is all macOS specific stuff, so you n

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: > If deprecate the binhex module, we perhaps should deprecate also > binascii.b2a_hqx(), binascii.a2b_hqx(), binascii.rlecode_hqx(), > binascii.rledecode_hqx() and binascii.crc_hqx(). Ok, let's do that. I updated the issue title and my PR. -- _

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-17 Thread STINNER Victor
Change by STINNER Victor : -- title: Deprecate the binhex module -> Deprecate the binhex module, binhex4 and hexbin4 standards ___ Python tracker ___ _

[issue39353] Deprecate the binhex module

2020-01-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mail

[issue39353] Deprecate the binhex module

2020-01-16 Thread STINNER Victor
STINNER Victor added the comment: > I also found an answer suggesting to use binascii.a2b_hex() to decode a > string the hexadecimal string "2020202020202020202020205635514d385a5856": https://stackoverflow.com/questions/9683278/how-to-get-hard-disk-drivers-serial-number-in-python/9683837#96838

[issue39353] Deprecate the binhex module

2020-01-16 Thread STINNER Victor
STINNER Victor added the comment: > But it would be nice to create a separate package on PyPI that provides such > functionality before removing it from the stdlib. This issue is *not* about removing the module :-) Only to mark it as deprecated. > If deprecate the binhex module, we perhaps s

[issue39353] Deprecate the binhex module

2020-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: binhex provides an encoding different from binascii.a2b_hex() and binascii.unhexlify(). If deprecate the binhex module, we perhaps should deprecate also binascii.b2a_hqx(), binascii.a2b_hqx(), binascii.rlecode_hqx(), binascii.rledecode_hqx() and binascii.

[issue39353] Deprecate the binhex module

2020-01-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17420 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18025 ___ Python tracker ___ _

[issue39353] Deprecate the binhex module

2020-01-16 Thread STINNER Victor
New submission from STINNER Victor : The binhex module encodes and decodes Apple Macintosh binhex4 data. It was originally developed for TRS-80. In the 1980s and early 1990s it was used on classic Mac OS 9 to encode binary email attachments. Mac OS 9 is now heavily outdated, replaced by "macO