Message336062
| 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: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 | |