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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, chris.jerdonek, flox, pitrou
Date 2012-07-12.07:46:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342079203.68.0.315626540829.issue15320@psf.upfronthosting.co.za>
In-reply-to
Content
> I wrote this patch with the assumption that it shouldn't hurt
> if multiple threads call deque.extend() at the same time.

By looking at the implementation, I found that if multiple threads call dequeue.extend() at the same time, all items will be added, but the order is not deterministic.
It probably does not matter for tests.

In any case, I think we should not rely on this specific implementation.  We should document which functions are safe to use in a multithreading environment.
History
Date User Action Args
2012-07-12 07:46:43amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, flox, chris.jerdonek
2012-07-12 07:46:43amaury.forgeotdarcsetmessageid: <1342079203.68.0.315626540829.issue15320@psf.upfronthosting.co.za>
2012-07-12 07:46:43amaury.forgeotdarclinkissue15320 messages
2012-07-12 07:46:42amaury.forgeotdarccreate