Message300491
`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. |
|
Date |
User |
Action |
Args |
2017-08-18 11:35:34 | pitrou | set | recipients:
+ pitrou, tim.peters, rhettinger, ncoghlan, zzzeek, python-dev, sbt, serhiy.storchaka, JohanAR, yselivanov, itamarst, davin |
2017-08-18 11:35:34 | pitrou | set | messageid: <1503056134.07.0.115501783894.issue14976@psf.upfronthosting.co.za> |
2017-08-18 11:35:34 | pitrou | link | issue14976 messages |
2017-08-18 11:35:33 | pitrou | create | |
|