This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Windson Yang
Recipients Windson Yang, docs@python, rhettinger
Date 2018-10-31.05:23:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540963429.35.0.788709270274.issue35118@psf.upfronthosting.co.za>
In-reply-to
Content
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/
History
Date User Action Args
2018-10-31 05:23:49Windson Yangsetrecipients: + Windson Yang, rhettinger, docs@python
2018-10-31 05:23:49Windson Yangsetmessageid: <1540963429.35.0.788709270274.issue35118@psf.upfronthosting.co.za>
2018-10-31 05:23:49Windson Yanglinkissue35118 messages
2018-10-31 05:23:49Windson Yangcreate