This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author matrixise
Recipients Windson Yang, Zahash Z, matrixise
Date 2019-02-20.10:37:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550659039.09.0.806582745586.issue36049@roundup.psfhosted.org>
In-reply-to
Content
>>> from collections import deque
>>> d = deque()
>>> d.append('j')
>>> d.appendleft('f')
>>> d
deque(['f', 'j'])
>>> repr(d)
"deque(['f', 'j'])"

Maybe there is a solution,

in the code of deque_repr, we convert the deque to a list. We could do the same thing and take the first and the last element.
History
Date User Action Args
2019-02-20 10:37:19matrixisesetrecipients: + matrixise, Windson Yang, Zahash Z
2019-02-20 10:37:19matrixisesetmessageid: <1550659039.09.0.806582745586.issue36049@roundup.psfhosted.org>
2019-02-20 10:37:19matrixiselinkissue36049 messages
2019-02-20 10:37:19matrixisecreate