Message192442
Much simpler:
$ ./python -Wd
import warnings
import sys
saved = warnings.filters.copy()
del sys.modules['warnings']
import warnings
assert warnings.filters != saved
assert warnings.filters.pop(0) = warnings.filters[0]
assert warnings.filters == saved
Explanation: the "default" filter is duplicated on each reload of the warnings module. |
|
Date |
User |
Action |
Args |
2013-07-06 13:56:53 | flox | set | recipients:
+ flox |
2013-07-06 13:56:53 | flox | set | messageid: <1373119013.09.0.814482152492.issue18383@psf.upfronthosting.co.za> |
2013-07-06 13:56:53 | flox | link | issue18383 messages |
2013-07-06 13:56:52 | flox | create | |
|