Machine-readable Specification for Deprecated and Removed APIs of CPython

I think something like this would be useful.

A URL field would be useful, often the replacement isn’t a single function or one-to-one and more guidance is needed on how to update.

There are also some deprecations which are more complex, like a parameter, or something used only in a certain way. Can we include those?

cc Pylint maintainer @Pierre-Sassoulas, who has expressed interest in some sort of deprecations API, and also Ruff maintainer @zanie.

See also this earlier proposal from @CAM-Gerlach, but the current proposal sounds like less work and easier to get done, and then iterated on.

5 Likes