Message336118
[Zahash Z] (Zahash Z)]
> If you look at the queue.PriorityQueue class, there is
> self.queue = [ ].
We really don't want to expose the internals here. They are subject to change and access to them is guarded by locks.
> It has not yet been decided whether to expose the content
> of the queue in its repr at all. There is no public API for
> accessing the content of the queue without removing items
> from the queue, and I think it is intentional.
I agree with Serhiy.
Let's close this feature request. It doesn't make sense for queues and is at odds with their design and intended uses. |
|
Date |
User |
Action |
Args |
2019-02-20 16:56:41 | rhettinger | set | recipients:
+ rhettinger, serhiy.storchaka, matrixise, Windson Yang, remi.lapeyre, Zahash Z |
2019-02-20 16:56:41 | rhettinger | set | messageid: <1550681801.36.0.445257163732.issue36049@roundup.psfhosted.org> |
2019-02-20 16:56:41 | rhettinger | link | issue36049 messages |
2019-02-20 16:56:41 | rhettinger | create | |
|