Author pitrou
Recipients JohanAR, davin, itamarst, ncoghlan, pitrou, python-dev, rhettinger, sbt, serhiy.storchaka, tim.peters, yselivanov, zzzeek
Date 2017-08-18.11:35:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503056134.07.0.115501783894.issue14976@psf.upfronthosting.co.za>
In-reply-to
Content
`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.
History
Date User Action Args
2017-08-18 11:35:34pitrousetrecipients: + pitrou, tim.peters, rhettinger, ncoghlan, zzzeek, python-dev, sbt, serhiy.storchaka, JohanAR, yselivanov, itamarst, davin
2017-08-18 11:35:34pitrousetmessageid: <1503056134.07.0.115501783894.issue14976@psf.upfronthosting.co.za>
2017-08-18 11:35:34pitroulinkissue14976 messages
2017-08-18 11:35:33pitroucreate