[issue36049] No __repr__() for queue.PriorityQueue and queue.LifoQueue
Rémi Lapeyre
report at bugs.python.org
Wed Feb 20 08:14:06 EST 2019
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
Note: when repr do not round trip, I think it's common practice to use brackets:
<LifoQueue('a'...'c')>
instead of:
LifoQueue('a'...'c')
Example with Regex from https://docs.python.org/3/howto/regex.html:
>>> re.match(r'From\s+', 'From amk Thu May 14 19:12:10 1998')
<re.Match object; span=(0, 5), match='From '>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36049>
_______________________________________
More information about the Python-bugs-list
mailing list