[docs] [issue35118] Add peek() or first() method in queue
Raymond Hettinger
report at bugs.python.org
Wed Oct 31 00:06:35 EDT 2018
Raymond Hettinger <raymond.hettinger at 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 <report at bugs.python.org>
<https://bugs.python.org/issue35118>
_______________________________________
More information about the docs
mailing list