This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Frunit, r.david.murray
Date 2015-08-14.13:00:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439557221.91.0.912989803295.issue24866@psf.upfronthosting.co.za>
In-reply-to
Content
I believe this is intentional; see the documentation of the "empty' method for the motivation.  The reason for not just reflecting the result of an empty call in __bool__ is that not doing so forces you to use empty, which gives you an opportunity to learn about the lack of guarantees.  And every time you use it, or read it in someone else's code, you are reminded that a Queue is *different* from a list in this very important way.
History
Date User Action Args
2015-08-14 13:00:21r.david.murraysetrecipients: + r.david.murray, Frunit
2015-08-14 13:00:21r.david.murraysetmessageid: <1439557221.91.0.912989803295.issue24866@psf.upfronthosting.co.za>
2015-08-14 13:00:21r.david.murraylinkissue24866 messages
2015-08-14 13:00:21r.david.murraycreate