[issue36049] No __repr__() for queue.PriorityQueue and queue.LifoQueue

Stéphane Wirtel report at bugs.python.org
Wed Feb 20 05:58:41 EST 2019


Stéphane Wirtel <stephane at wirtel.be> added the comment:

For this script, you could have the following output:

from queue import Queue
q = Queue()
print(repr(q))
q.put('a')
print(repr(q))
q.put('b')
print(repr(q))
q.put('c')
print(repr(q))


Queue()
Queue('a')
Queue('a','b')
Queue('a'...'c')

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36049>
_______________________________________


More information about the Python-bugs-list mailing list