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 rhettinger
Recipients mjuric, python-dev, rhettinger
Date 2011-04-19.19:08:53
SpamBayes Score 0.0016281485
Marked as misclassified No
Message-id <1303240133.82.0.88643890056.issue11875@psf.upfronthosting.co.za>
In-reply-to
Content
Mario, I removed the unnecessary mutation, but remember that OrderedDict's are not thread-safe in general.  Anything that updates an OrderedDict will temporarily leave it in an inconsistent state while the links and mappings are being updated.  

That being said, it isn't hard to create a subclass with a lock around each of the mutating methods: setitem, delitem, clear, popitem, pop, move_to_end, setdefault, init, and update.
History
Date User Action Args
2011-04-19 19:08:53rhettingersetrecipients: + rhettinger, python-dev, mjuric
2011-04-19 19:08:53rhettingersetmessageid: <1303240133.82.0.88643890056.issue11875@psf.upfronthosting.co.za>
2011-04-19 19:08:53rhettingerlinkissue11875 messages
2011-04-19 19:08:53rhettingercreate