Machine-readable Specification for Deprecated and Removed APIs of CPython

Yeah if you mean deprecating multiple parameters in one deprecation, yup that was another bit like the other suggested here included in my original proposal that I elided in the initial draft here for simplicity. I added it back, which essentially just makes making module, name and arg accept list[str] to apply to multiple objects. For two distinct parameters of the same function deprecated/removed in separate deprecation on different timelines, those could just be separate deprecation entries.

Totally! As part of that I also hope to rewrite the working prototype to read from the TOML (at least a core subset of the schema), construct the deprecation message in the docs and output the JSON/CSV.

1 Like