Alex Shkop added the comment:

This is updated patch that doesn't alter warn_explicit behavior.

So the following:
simplefilter("ignore")
simplefilter("error", append=True)
simplefilter("ignore", append=True)

will ignore all warnings with this patch and no duplicates are inserted to 
warnings.filters. Also added a test for that case.

----------
Added file: http://bugs.python.org/file40178/issue18383_34_2.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18383>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to