[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: I kept unicodedata.ucd_3_2_0 and added a comment to explain why it's still relevant in 2020. I'm done with tasks listed in this issue, so I close it. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 84f7382215b9e024a5590454726b6ae4b0ca70a0 by Victor Stinner in branch 'master': bpo-42157: Rename unicodedata.ucnhash_CAPI (GH-22994) https://github.com/python/cpython/commit/84f7382215b9e024a5590454726b6ae4b0ca70a0 --

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: > The version 3.2.0 is needed for IDNA compatibility (...) Oh, I missed your comment. I also discovered it by trying to remove it :-) So I think that the last thing to do for this issue is to remove unicodedata.ucnhash_CAPI: PR 22994. --

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: > By the way, Unicode 3.2 was released in 2002: 18 years ago. I don't think > that it's still relevant in 2020 to keep backward compatibility with Unicode > 3.2. I propose to deprecate unicodedata.ucd_3_2_0 and deprecate the > unicodedate.UCD type. In

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21908 pull_request: https://github.com/python/cpython/pull/22994 ___ Python tracker ___

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset c8c4200b65b2159bbb13cee10d67dfb3676fef26 by Victor Stinner in branch 'master': bpo-42157: Convert unicodedata.UCD to heap type (GH-22991) https://github.com/python/cpython/commit/c8c4200b65b2159bbb13cee10d67dfb3676fef26 --

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21906 pull_request: https://github.com/python/cpython/pull/22991 ___ Python tracker ___

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 920cb647ba23feab7987d0dac1bd63bfc2ffc4c0 by Victor Stinner in branch 'master': bpo-42157: unicodedata avoids references to UCD_Type (GH-22990) https://github.com/python/cpython/commit/920cb647ba23feab7987d0dac1bd63bfc2ffc4c0 --

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +21905 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22990 ___ Python tracker ___

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 26.10.2020 18:05, STINNER Victor wrote: > > By the way, Unicode 3.2 was released in 2002: 18 years ago. I don't think > that it's still relevant in 2020 to keep backward compatibility with Unicode > 3.2. I propose to deprecate unicodedata.ucd_3_2_0

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
New submission from STINNER Victor : Mohamed Koubaa and me are trying to convert the unicodedata module to the multi-phase initialization API (PEP 489) and to convert the UCD static type to a heap type in bpo-1635741. The unicodedata extension module has some special cases: * It has a C API