New submission from Victor Porton <por...@narod.ru>:
It seems that bool(Q) always return True for a priority queue Q. It should behave the same way as for bool(L) where L is a list, that is return False on an empty queue. Please check also other objects in https://docs.python.org/3/library/queue.html After the bug is fixed, the documentation should be clear that there was a change in the behavior in certain Python version. ---------- components: Library (Lib) messages: 322103 nosy: porton priority: normal severity: normal status: open title: bool(Q) always return True for a priority queue Q type: behavior versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34180> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com