Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

There's an error in your code:

    import queue          # loads the standard library queue module
    
    ...

    queue = queue.Queue() # reassign queue to an instance of Queue

    ...

    except queue.Empty:   # expects "queue" the module, not the instance

----------
nosy: +rhettinger

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

Reply via email to