R. David Murray added the comment:

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.

----------
nosy: +r.david.murray

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

Reply via email to