diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2016-09-01 10:20:05 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2016-09-02 16:39:17 +0200 |
commit | 68ea0c792db6bac435752e45d8681f7f1283453d (patch) | |
tree | e29eb26cfbf72ee9b03aa15dd02671bf17e70301 /doc | |
parent | 2dc070d3b7c1aa5d6e0b3509078c358192627132 (diff) | |
download | numpy-68ea0c792db6bac435752e45d8681f7f1283453d.tar.gz |
DOC: Add warning stacklevel increase to the release notes
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.12.0-notes.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/release/1.12.0-notes.rst b/doc/release/1.12.0-notes.rst index ef8131e89..f7f3b4e55 100644 --- a/doc/release/1.12.0-notes.rst +++ b/doc/release/1.12.0-notes.rst @@ -319,6 +319,19 @@ is regular quicksort but changing to a heapsort when not enough progress is made. This retains the good quicksort performance while changing the worst case runtime from ``O(N^2)`` to ``O(N*log(N))``. +stacklevel of warnings increased +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The stacklevel for python based warnings was increased so that most warnings +will report the offending line of the user code instead of the line the +warning itself is given. Passing of stacklevel is now tested to ensure that +new warnings will recieve the ``stacklevel`` argument. + +This causes warnings with the "default" or "module" filter to be shown once +for every offending user code line or user module instead of only once. On +python versions before 3.4, this can cause warnings to appear that were falsly +ignored before, which may be surprising especially in test suits. + + Deprecations ============ |