Windson Yang <wiwind...@gmail.com> added the comment:
For deque, we can add peek() function to deque or just make it clear in the document that we can use deque[0] to access the first element(I can only find index method in the document) For Queue, I found Java and C++ has the function like first() or peek(), I'm not sure should we also implement a method like this. * http://www.cplusplus.com/reference/queue/queue/ ---------- _______________________________________ 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