Message248585
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. |
|
Date |
User |
Action |
Args |
2015-08-14 13:00:21 | r.david.murray | set | recipients:
+ r.david.murray, Frunit |
2015-08-14 13:00:21 | r.david.murray | set | messageid: <1439557221.91.0.912989803295.issue24866@psf.upfronthosting.co.za> |
2015-08-14 13:00:21 | r.david.murray | link | issue24866 messages |
2015-08-14 13:00:21 | r.david.murray | create | |
|