You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Display DeprecationWarning, PendingDeprecationWarning and ImportWarning in debug mode #76269
Activity
vstinner commentedon Nov 20, 2017
Related python-dev thread:
https://mail.python.org/pipermail/python-dev/2017-November/150608.html
"[Python-Dev] Show DeprecationWarning in debug mode?"
I propose to display Display DeprecationWarning, PendingDeprecationWarning and ImportWarning when Python is compiled in debug mode.
Attached PR implements proposed change.
vstinner commentedon Nov 20, 2017
Warnings filters in debug mode.
Reference (current code):
With my PR 4474:
BytesWarning is not modified by my PR since this specific warning is controlled by the -b option. Example with my PR.
-b option, ignore => default:
-bb option, ignore => error:
Note: While writing this comment, I also found a bug in the new developer mode (-X dev): bpo-32089.
ambv commentedon Nov 20, 2017
New changeset 895862a by Łukasz Langa (Victor Stinner) in branch 'master':
bpo-32088: Display Deprecation in debug mode (bpo-4474)
895862a
ambv commentedon Nov 20, 2017
Merged. This is an important improvement to make sure 3.7's quality is the best possible.
Thanks! ✨ 🍰 ✨