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

Windson Yang report at bugs.python.org
Wed Feb 20 05:31:02 EST 2019


Windson Yang <wiwindson at outlook.com> added the comment:

Hello, Zahash Z. May I ask what is your expected behavior for the return value of __repr__() from PriorityQueue. I'm agreed with Stéphane Wirtel, I don't think returning all the items would be a good idea, maybe we can improve it in another way. For instance, return the first and last element as well as the length.

----------
nosy: +Windson Yang

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


More information about the Python-bugs-list mailing list