Skip to content

Commit

Permalink
PEP 674: only 9 projects are affected (#2280)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored Jan 26, 2022
1 parent e3836e9 commit bd2d338
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pep-0674.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bd2d338

Please sign in to comment.