This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Danilo Shiga, JelleZijlstra, mark.dickinson, martin.panter, osantana, pitrou
Date 2017-05-25.07:32:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495697545.64.0.414306154244.issue30441@psf.upfronthosting.co.za>
In-reply-to
Content
@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.
History
Date User Action Args
2017-05-25 07:32:25mark.dickinsonsetrecipients: + mark.dickinson, pitrou, martin.panter, osantana, JelleZijlstra, Danilo Shiga
2017-05-25 07:32:25mark.dickinsonsetmessageid: <1495697545.64.0.414306154244.issue30441@psf.upfronthosting.co.za>
2017-05-25 07:32:25mark.dickinsonlinkissue30441 messages
2017-05-25 07:32:25mark.dickinsoncreate