Message 336128 - Python tracker (original) (raw)

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.

There are a number of places where making a less opaque repr is helpful, but iterators and queues have a temporal aspect where this doesn't make sense.