Antoine Pitrou added the comment: `unfinished_tasks` is not a public attribute AFAIK (it's not documented).
The change is necessary: you cannot increment unfinished_tasks in reentrant put(), since incrementing in pure Python is not atomic. So the incrementation is moved to get(), which probably cannot be made reentrant at all. If keeping the visible semantics of the `unfinished_tasks` attribute is important, we could make it a property that computes the desired value. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14976> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com