Thanks for your advice! I confirm that raw GitHub code search is painful with all copies of CPython code base :-(
I copied your notes in my https://pythondev.readthedocs.io/test_next_python.html list :-)
Le dim. 5 juil. 2020 à 07:55, Inada Naoki firstname.lastname@example.org a écrit :
After 3.9 becomes beta, I am searching deprecated APIs we can remove in Python 3.10. I want to share how I am checking how the API is not used.
Please teach me if you know an easy and better approach to find deprecated API usage.
Github code search is not powerful enough and there is a lot of noise. (e.g. many people copy CPython source code). On the other hand, Sourcegraph only searches from major repositories, and has powerful filtering. This is an example of `PyEval_ReleaseLock` search.
## Top 4000 packages
You can download a list of top 4000 PyPI packages in JSON format from this site. https://hugovk.github.io/top-pypi-packages/
I used this script to download sdist packages from the JSON file. https://github.com/methane/notes/blob/master/2020/wchar-cache/download_sdist...
Note that this script doesn't download packages without sdist (e.g. only universal wheel). It is because I have searched Python/C API. We can reduce the pain of the removal by fixing most of top 4000 packages.
Inada Naoki email@example.com _______________________________________________ Python-Dev mailing list -- firstname.lastname@example.org To unsubscribe send an email to email@example.com https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://firstname.lastname@example.org/message/USDJAUAB... Code of Conduct: http://python.org/psf/codeofconduct/