Yury Selivanov <yseliva...@gmail.com> added the comment:

> Not really, your code never removes the key from the events. If the cache is 
> cleaned all further executions will keep forever in the `wait` statement. It 
> is needed to create the Event again to perform at least one query to retrieve 
> the cache value.

Right.  Well, that should be solved by adding "events.pop(key)" right after 
"events[key].set()"?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30457>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to