[3.8] bpo-37250: put back tp_print for backwards compatibility by jdemeyer · Pull Request #14193 · python/cpython (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO it's fine if compiling _testcapimodule.c emits a deprecation warning.
The more warnings are shown, the less value there is in those warnings. A single warning during compilation stands out, an additional warning in between many not. So we should strive for compiling CPython without any warnings.
If it becomes an issue, we can just remove the test.
I think that's the worst solution. We typically test deprecated functionality in pure Python modules, why shouldn't we test deprecated C API?