Skip to content

Conversation

@cunkel
Copy link

@cunkel cunkel commented Feb 27, 2019

If two threads generating a traceback run checkcache() at the same time,
they may both try to delete the same entries in the line cache,
resulting in a KeyError in one. Use .pop(filename, None) instead of
del, as it will not raise the KeyError.

https://bugs.python.org/issue25872

https://bugs.python.org/issue25872

If two threads generating a traceback run checkcache() at the same time,
they may both try to delete the same entries in the line cache,
resulting in a KeyError in one.  Use .pop(filename, None) instead of
del, as it will not raise the KeyError.

https://bugs.python.org/issue25872
@rhettinger
Copy link
Contributor

This looks fine to me. Please add a news entry.

(Intended for squash merge.)
@csabella csabella requested a review from benjaminp October 20, 2019 18:36
@csabella csabella closed this Jan 6, 2020
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.

7 participants