[issue17385] Use deque instead of list the threading.Condition waiter queue

Guido van Rossum report at bugs.python.org
Mon Mar 11 02:46:52 CET 2013


Guido van Rossum added the comment:

Looks fine. I'd say that it would be great to add slicing to deque!

There's one oddity in the code, but it was there before the patch -- the local variable name __waiters is pretty silly. It appears to be a micro-optimization to avoid using self._waiters more than once; even if that is worth it (I kind of doubt it), the __private name is wrong and misguided.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17385>
_______________________________________


More information about the Python-bugs-list mailing list