[Python-Dev] [Python-checkins] cpython: Issue #17385: Fix quadratic behavior in threading.Condition (original) (raw)

Ezio Melotti ezio.melotti at gmail.com
Mon Mar 11 02:14:37 CET 2013


Hi,

On Mon, Mar 11, 2013 at 2:58 AM, raymond.hettinger <python-checkins at python.org> wrote:

http://hg.python.org/cpython/rev/0f86b51f8f8b changeset: 82592:0f86b51f8f8b user: Raymond Hettinger <python at rcn.com> date: Sun Mar 10 17:57:28 2013 -0700 summary: Issue #17385: Fix quadratic behavior in threading.Condition

files: Lib/threading.py | 10 ++++++++-- Misc/NEWS | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/Lib/threading.py b/Lib/threading.py --- a/Lib/threading.py +++ b/Lib/threading.py @@ -10,6 +10,12 @@ from time import time as time from traceback import formatexc as formatexc from weakrefset import WeakSet +try: + from itertools import islice as slice + from collections import deque as deque +except ImportError: + from itertools import islice as islice + from collections import deque as deque

Shouldn't the one in the 'try' be _islice too?

Best Regards, Ezio Melotti



More information about the Python-Dev mailing list