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 ashkop
Recipients ashkop, berker.peksag, ezio.melotti, flox, martin.panter, rbcollins, serhiy.storchaka
Date 2015-08-13.06:11:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439446309.43.0.796211151977.issue18383@psf.upfronthosting.co.za>
In-reply-to
Content
@rbcollins that is exactly what was trying to say in previous comment. We can make a change to current patch that won't affect behavior. In old API in this sequence of filters last filter was never used:

simplefilter("ignore")
simplefilter("error", append=True)
simplefilter("ignore", append=True)  # never used

So I suggest that new patch should work like this:


simplefilter("error")
simplefilter("ignore", append=True)  # appends new filter to the end

simplefilter("ignore")
simplefilter("error", append=True)
simplefilter("ignore", append=True)  # does nothing since same filter is present.

This way filtering will work in the same way it worked before patch and we won't have duplicates.

I'll update the patch as soon as I will get to my computer.
History
Date User Action Args
2015-08-13 06:11:49ashkopsetrecipients: + ashkop, rbcollins, ezio.melotti, flox, berker.peksag, martin.panter, serhiy.storchaka
2015-08-13 06:11:49ashkopsetmessageid: <1439446309.43.0.796211151977.issue18383@psf.upfronthosting.co.za>
2015-08-13 06:11:49ashkoplinkissue18383 messages
2015-08-13 06:11:49ashkopcreate