|
|
Subscribe / Log in / New account

Who should see Python deprecation warnings?

Who should see Python deprecation warnings?

Posted Dec 14, 2017 9:03 UTC (Thu) by callegar (guest, #16148)
Parent article: Who should see Python deprecation warnings?

Isn't this the classic situation for using environment variables? The developer declares himself as such by running with PYTHON_DEVEL=true (either by setting it directly or because his ide sets it for him) and sees all the warnings. Users don't. Plus, setuptools could be enhanced so that setup.py can lint the code.


to post comments

Who should see Python deprecation warnings?

Posted Dec 14, 2017 16:13 UTC (Thu) by cortana (subscriber, #24596) [Link]

That way, I forsee myself being belaid by hundreds of thousands of deprecation warnings for code I import, rather than just for my own code. The same problem makes it difficult to build my own C++ code with -Wall -Werror; I have always assumed that the Boost developers are clever enough to avoid the problems that the compiler hints at when -Wstrict-aliasing is turned on, but I would still like those warnings to fail the build when found in my own code...


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds