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
Date 2018-10-31.03:20:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540956018.19.0.788709270274.issue35118@psf.upfronthosting.co.za>
In-reply-to
Content
I found other languages like Java and C++ have the method to access the first value in Queue like first() and peek(). Since we use deque_ to create Queue now, it's easy to implement in python using the index. Otherwise, we can add this to the document? I also found some discussion_ here.


.. _deque: 
 https://github.com/python/cpython/blob/master/Lib/queue.py#L205

.. _discussion https://mail.python.org/pipermail/python-list/2010-March/569930.html
History
Date User Action Args
2018-10-31 03:20:18Windson Yangsetrecipients: + Windson Yang, docs@python
2018-10-31 03:20:18Windson Yangsetmessageid: <1540956018.19.0.788709270274.issue35118@psf.upfronthosting.co.za>
2018-10-31 03:20:17Windson Yanglinkissue35118 messages
2018-10-31 03:20:16Windson Yangcreate