Message322103
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. |
|
Date |
User |
Action |
Args |
2018-07-21 15:53:57 | porton | set | recipients:
+ porton |
2018-07-21 15:53:57 | porton | set | messageid: <1532188437.33.0.56676864532.issue34180@psf.upfronthosting.co.za> |
2018-07-21 15:53:57 | porton | link | issue34180 messages |
2018-07-21 15:53:57 | porton | create | |
|