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 gvanrossum
Recipients Jim.Jewett, Mark.Shannon, gvanrossum, python-dev, rhettinger, vstinner
Date 2012-03-06.17:21:43
SpamBayes Score 5.5440097e-12
Marked as misclassified No
Message-id <CAP7+vJ+HwoKyfWVMZfyVQrcguRYPQ9AFnBqwF5YPx11ueeVw5w@mail.gmail.com>
In-reply-to <4F5641BE.40301@hotpy.org>
Content
On Tue, Mar 6, 2012 at 8:56 AM, Mark Shannon <report@bugs.python.org> wrote:
>
> Mark Shannon <mark@hotpy.org> added the comment:
>
> Jim Jewett wrote:
>> Jim Jewett <jimjjewett@gmail.com> added the comment:
>>
>> Can't this be triggered by non-malicious code that just happened to have a python comparison and get hit with a thread switch?
>
> So, they are writing to a dict in one thread while reading from the same
> dict in another thread, without any external locks and with keys written
> in Python.
>>
>> I'm not sure how often it happens, but today it would not be visible to the user; after the patch, users will see a sporadic failure that they can't easily defend against.
>>
> I suspect, they are already seeing sporadic failures.
> I think raising an exception is better than weird failures.
>
> We should document the new behaviour, as it is a change in semantics.

+1 on everything you said.
History
Date User Action Args
2012-03-06 17:21:44gvanrossumsetrecipients: + gvanrossum, rhettinger, vstinner, Mark.Shannon, python-dev, Jim.Jewett
2012-03-06 17:21:44gvanrossumlinkissue14205 messages
2012-03-06 17:21:43gvanrossumcreate