Message306645
The problem is not the function displaying the warning, but warnings registries (__warningregistry__) no?
The behaviour depends on the action of the filter matching the ResourceWarning warning:
* always: don't touch the registry => no leak
* ignore: add the key to registry => leak!
* another action: add the key to registry => leak!
The key is the tuple (text, category, lineno).
I understand why always doesn't touch the registry. But why does "ignore" action touch the registry? Not only the user will not see the message, but the memory will slowly grow in the background. |
|
Date |
User |
Action |
Args |
2017-11-21 14:46:11 | vstinner | set | recipients:
+ vstinner, rhettinger, r.david.murray, serhiy.storchaka, Александр Карпинский, jbfzs |
2017-11-21 14:46:11 | vstinner | set | messageid: <1511275571.33.0.213398074469.issue27535@psf.upfronthosting.co.za> |
2017-11-21 14:46:11 | vstinner | link | issue27535 messages |
2017-11-21 14:46:11 | vstinner | create | |
|