Message340878
| 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:37 | Windson Yang | set | recipients: + Windson Yang, docs@python |
| 2019-04-26 03:01:37 | Windson Yang | set | messageid: <1556247697.17.0.567840188783.issue36731@roundup.psfhosted.org> |
| 2019-04-26 03:01:37 | Windson Yang | link | issue36731 messages |
| 2019-04-26 03:01:36 | Windson Yang | create | |