Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

For deque, we have d[0].  Is anything more needed?  Even lists don't require a 
peek.

For Queue, I'm not sure I've ever seen any use case for peek.  What do you have 
in mind?  

* https://docs.oracle.com/javase/7/docs/api/java/util/Queue.html#peek()

----------
versions:  -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

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

Reply via email to