This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients flox
Date 2013-07-06.13:56:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:53floxsetrecipients: + flox
2013-07-06 13:56:53floxsetmessageid: <>
2013-07-06 13:56:53floxlinkissue18383 messages
2013-07-06 13:56:52floxcreate