◐ Shell
clean mode source ↗

bpo-27535: Fix memory leak with warnings ignore by vstinner · Pull Request #4489 · python/cpython

serhiy-storchaka

The warnings module doesn't leak memory anymore in the hidden
warnings registry for the "ignore" action of warnings filters.

The warn_explicit() function doesn't add the warning key to the
registry anymore for the "ignore" action.

serhiy-storchaka

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Nov 27, 2017
The warnings module doesn't leak memory anymore in the hidden
warnings registry for the "ignore" action of warnings filters.

The warn_explicit() function doesn't add the warning key to the
registry anymore for the "ignore" action.
(cherry picked from commit c975878)

@ghost ghost mentioned this pull request

Sep 12, 2022