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 2019-04-26.03:01:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556247697.17.0.567840188783.issue36731@roundup.psfhosted.org>
In-reply-to
Content
We don't have the base example for priority queue in https://docs.python.org/3.8/library/heapq.html#priority-queue-implementation-notes, We can add something like:

> q = Q.PriorityQueue()
> q.put(10)
> q.put(1)
> q.put(5)
> while not q.empty():
    print q.get()

We may also need to add Notes about the PriorityQueue will block when we use max size 

> q = Q.PriorityQueue(1)
> q.put(10)
> q.put(1) # will block until the Queue is available again.
History
Date User Action Args
2019-04-26 03:01:37Windson Yangsetrecipients: + Windson Yang, docs@python
2019-04-26 03:01:37Windson Yangsetmessageid: <1556247697.17.0.567840188783.issue36731@roundup.psfhosted.org>
2019-04-26 03:01:37Windson Yanglinkissue36731 messages
2019-04-26 03:01:36Windson Yangcreate