On 11/14/2016 4:44 PM, Christoph Groth wrote:
Thanks, Victor, for the link to the bug fix! I suspected that the
original mechanism was something like that, but I believed that it was
so by design.
I find it a bit surprising that CPython gets changed between versions in
backwards-incompatible wa
Thanks, Victor, for the link to the bug fix! I suspected that the
original mechanism was something like that, but I believed that it
was so by design.
I find it a bit surprising that CPython gets changed between
versions in backwards-incompatible ways (even if it’s a bug fix)
without a notic
You are looking for the bug fix http://bugs.python.org/issue4180:
"warnings.simplefilter("always") does not make warnings always show up"
Python 2.7 has a bug, Python 3.4.3+ behaves correctly.
It is surprising that Python 3.4.0 and Python 3.4.3 behaves
differently :-) (Ubuntu 14.04 uses Python 3
(I assume that this list is appropriate for this topic, but if it
isn't, I will be grateful for being redirected to the appropriate
place.)
It seems that warnings behave differently in Python 2 and Python
3. Consider the following script.
def func():
warnings.warn("Blabl