Message294444
@osantana: you'd need to be using the lock at least in `__setitem__` and `__delitem__` as well, else there's nothing preventing modifications to the dictionary during the `list` call. It may make sense to protect *all* accesses (read or write) to `_data`, though you'd need to either use a re-entrant lock in that case or be very careful about not acquiring the lock twice. |
|
Date |
User |
Action |
Args |
2017-05-25 07:32:25 | mark.dickinson | set | recipients:
+ mark.dickinson, pitrou, martin.panter, osantana, JelleZijlstra, Danilo Shiga |
2017-05-25 07:32:25 | mark.dickinson | set | messageid: <1495697545.64.0.414306154244.issue30441@psf.upfronthosting.co.za> |
2017-05-25 07:32:25 | mark.dickinson | link | issue30441 messages |
2017-05-25 07:32:25 | mark.dickinson | create | |
|