Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-03-18 | py/objdeque: Expand implementation to be doubly-ended and support iter. | Dash Peters | |
Add `pop()`, `appendleft()`, and `extend()` methods, support iteration and indexing, and initializing from an existing sequence. Iteration and indexing (subscription) have independent configuration flags to enable them. They are enabled by default at the same level that collections.deque is enabled (the extra features level). Also add tests for checking new behavior. Signed-off-by: Damien George <damien@micropython.org> | |||
2023-06-08 | tests: Replace umodule with module everywhere. | Jim Mussared | |
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com> | |||
2018-02-21 | py/objdeque: Protect against negative maxlen in deque constructor. | Damien George | |
Otherwise passing -1 as maxlen will lead to a zero allocation and subsequent unbound buffer overflow in deque.append() because i_put is allowed to grow without bound. | |||
2018-02-21 | tests/basics: Add tests to improve coverage of py/objdeque.c. | Damien George | |
2018-02-21 | tests/basics/deque*: Tests for ucollections.deque. | Paul Sokolovsky | |