[issue16640] Less code under lock in sched.scheduler

Antoine Pitrou report at bugs.python.org
Fri Dec 28 16:05:55 CET 2012


Antoine Pitrou added the comment:

What is the point of having heapq.heappush under a lock if heapq.heappop in another method is not protected? The logic doesn't seem to make sense.

----------

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


More information about the Python-bugs-list mailing list