Message249599
Okay so I take back my first proposal of restoring the filters in the test suite, which would bring us back to <https://bugs.python.org/issue18383#msg232451>.
Also, my second proposal of setting a flag doesn’t look so easy either. The “_warnings” C module caches the filters list in a static variable between module reloads, so it is not so easy to keep a flag recording whether the “warnings” Python module needs to initialize it. I started on a patch, but discovered I would have to make uncomfortable changes to the C module.
So unless anyone has any better ideas, I think Alex’s patch is as good and practical enough. And yes Victor’s change does fix the other half of the problem. |
|
Date |
User |
Action |
Args |
2015-09-03 03:22:36 | martin.panter | set | recipients:
+ martin.panter, vstinner, rbcollins, ezio.melotti, flox, berker.peksag, serhiy.storchaka, ashkop |
2015-09-03 03:22:36 | martin.panter | set | messageid: <1441250556.38.0.399638864749.issue18383@psf.upfronthosting.co.za> |
2015-09-03 03:22:36 | martin.panter | link | issue18383 messages |
2015-09-03 03:22:35 | martin.panter | create | |
|