[Python-Dev] [Python-checkins] cpython: Issue #17385: Fix quadratic behavior in threading.Condition
Ezio Melotti
ezio.melotti at gmail.com
Mon Mar 11 02:14:37 CET 2013
More information about the Python-Dev mailing list
Mon Mar 11 02:14:37 CET 2013
- Previous message: [Python-Dev] pytracemalloc 0.7: new tool to track memory leaks in Python
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #17385: Fix quadratic behavior in threading.Condition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 format_exc as _format_exc > 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
- Previous message: [Python-Dev] pytracemalloc 0.7: new tool to track memory leaks in Python
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #17385: Fix quadratic behavior in threading.Condition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list