Message336062
>>> 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. |
|
Date |
User |
Action |
Args |
2019-02-20 10:37:19 | matrixise | set | recipients:
+ matrixise, Windson Yang, Zahash Z |
2019-02-20 10:37:19 | matrixise | set | messageid: <1550659039.09.0.806582745586.issue36049@roundup.psfhosted.org> |
2019-02-20 10:37:19 | matrixise | link | issue36049 messages |
2019-02-20 10:37:19 | matrixise | create | |
|