Skip to content

[2.7] bpo-27535: Fix memory leak with warnings ignore#4588

Closed
vstinner wants to merge 1 commit intopython:2.7from
vstinner:warn_ignore27
Closed

[2.7] bpo-27535: Fix memory leak with warnings ignore#4588
vstinner wants to merge 1 commit intopython:2.7from
vstinner:warn_ignore27

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented 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.

https://bugs.python.org/issue27535

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.
@vstinner
Copy link
Copy Markdown
Member Author

I reject my PR for the good reasons given by Serhiy Storchaka: "I meant the original issue. AFAIK ResourceWarningis not raised in 2.7. And other warnings less likely have unique messages. Seems the problem is less critical in 2.7."
https://bugs.python.org/issue27535#msg307139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants