Message98752
| Author |
ezio.melotti |
| Recipients |
amaury.forgeotdarc, barry, benjamin.peterson, brian.curtin, eric.araujo, esam, ezio.melotti, flox, pitrou, rhettinger |
| Date |
2010年02月02日.17:55:21 |
| SpamBayes Score |
3.3663072e-12 |
| Marked as misclassified |
No |
| Message-id |
<1265133323.22.0.465543689662.issue7092@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In issue7092_test_support:
1) silence_py3k_warning should have a docstring that explain what the function does and what filters should be, possibly including an example;
2) I'd use "if not filters:" instead of "if filters == ():";
3) are there cases where the third arg of filterwarnings is not DeprecationWarning? If not, it's probably better to turn "filters" in a list of regex instead than a sequence of tuples like (regex, DeprecationWarning);
4) maybe silence_py3k_warning could yield an instance of WarningsRecorder, in case someone wants to access the silenced warnings. |
|