Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-32230: Set sys.warnoptions with -X dev #4820
Conversation
vstinner
requested a review
from gpshead
as a
code owner
Dec 12, 2017
the-knights-who-say-ni
added
the
CLA signed
label
Dec 12, 2017
bedevere-bot
added
the
awaiting merge
label
Dec 12, 2017
This comment has been minimized.
This comment has been minimized.
|
This PR is the modified version of Nick's PR #4734, see my comment: #4734 (comment) |
vstinner
merged commit 747f48e
into
python:master
Dec 12, 2017
bedevere-bot
removed
the
awaiting merge
label
Dec 12, 2017
vstinner
deleted the
vstinner:xdev_warnoptions
branch
Dec 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.


vstinner commentedDec 12, 2017
•
edited by bedevere-bot
Rather than supporting dev mode directly in the warnings module, this
instead adjusts the initialisation code to add an extra 'default'
entry to sys.warnoptions when dev mode is enabled.
This ensures that dev mode behaves exactly as if
-Wdefaulthadbeen passed on the command line, including in the way it interacts
with
sys.warnoptions, and with other command line flags like-bb.Fix also bpo-20361: have -b & -bb options take precedence over any
other warnings options.
https://bugs.python.org/issue32230