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 :-) victor Le dim. 5 juil. 2020 à 07:55, Inada Naoki <songofaca...@gmail.com> a écrit : > > Hi, folks. > > 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. > > ## Sourcegraph > > 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. > > https://sourcegraph.com/search?q=PyEval_ReleaseLock+file:.*%5C.%28cc%7Ccxx%7Ccpp%7Cc%29+-file:ceval.c+-file:pystate.c&patternType=literal&case=yes > > > ## 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.py > > 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. > > > Regards, > -- > Inada Naoki <songofaca...@gmail.com> > _______________________________________________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/USDJAUABEULVSS2TLODZBYBEEDN2MNHR/ > Code of Conduct: http://python.org/psf/codeofconduct/ -- Night gathers, and now my watch begins. It shall not end until my death. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/IMEF35VYDGOFIZSGXGHXH3EE5WNA7333/ Code of Conduct: http://python.org/psf/codeofconduct/