[Python-ideas] Fwd: Concurrent safety?

Jim Jewett jimjjewett at gmail.com
Fri Nov 4 18:49:06 CET 2011


On Fri, Nov 4, 2011 at 1:11 PM, Mike Meyer <mwm at mired.org> wrote:
> On Thu, Nov 3, 2011 at 6:51 PM, Bruce Leban <bruce at leapyear.org> wrote:
>>
>> On Thu, Nov 3, 2011 at 9:38 AM, Mike Meyer <mwm at mired.org> wrote:
>> We're wasting our time. You said above "You don't lock names, you lock
>> objects." Why not? Because that was your original plan and your mind is
>> closed to other ideas?

> No, because I couldn't think of a way to make locking names work.

Replace dicts (or at least globals and attribute dicts) with something
that enforces your policy -- whether that is by a mutex, a mutex per
entry, returning only copies of the values, etc...

-jJ



More information about the Python-ideas mailing list