PEP 674: only 9 projects are affected (#2280)

This commit is contained in:
Victor Stinner 2022-01-26 23:41:24 +01:00 committed by GitHub
parent e3836e95b5
commit bd2d338aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -16,7 +16,7 @@ Incompatible C API change disallowing using macros as an l-value to:
* Ease the C API implementation on other Python implementation;
* Help migrating existing C extensions to the HPy API.
Only 13 out of the top 5000 PyPI projects (0.3%) are affected by 2 macro
Only 9 out of the top 5000 PyPI projects (0.2%) are affected by 2 macro
changes. An additional 22 projects just have to regenerate their Cython
code.
@ -234,23 +234,19 @@ The proposed C API changes are backward incompatible on purpose.
On January 26, 2022, a code search on the top 5000 PyPI projects (4762
projects in practice; others don't have a source archive) found that
only 13 projects are affected (0.3%):
only 9 projects are affected (0.2%):
* Cython (0.29.26)
* PyGObject (3.42.0)
* datatable (1.0.0)
* guppy3 (3.1.2)
* numpy (1.22.1)
* pickle5 (0.0.12)
* psycopg2 (2.9.3)
* pycurl (7.44.1)
* pysha3 (1.0.2)
* python-snappy (0.6.0)
* recordclass (0.17.1)
* scipy (1.7.3)
* zodbpickle (2.2.0)
Of these 13 projects, only 2 macros are used as an l-value:
Of these 9 projects, only 2 macros are used as an l-value:
``Py_TYPE()`` and ``Py_SIZE()``.
An additional 22 projects just have to regenerate their Cython code to