[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

STINNER Victor report at bugs.python.org
Tue Nov 21 09:48:10 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

Antoine:
> If they have different names, they will be logged separately.

Oh wow, nice behaviour, I like it :-)

Antoine:
>> For ResourceWarning, your rationale only concerns pydebug build, no?
> Why?  I'm talking about "-X dev", not pydebug builds.

Oops sorry, typo (brain error), I mean: "also concerns".

Serhiy:
> See also issue27535.

Oh, not leaking memory in warnings registies is a nice side effect of the "always" action :-)

--

It's much more complicated than what I expected to get the "correct behaviour" for warnings :-/

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32089>
_______________________________________


More information about the Python-bugs-list mailing list