revert deque(s)

This commit is contained in:
hathach 2023-03-20 12:12:30 +07:00
parent c2d506b1fa
commit ce2c3d7dc5
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
3 changed files with 5 additions and 4 deletions
.codespell
docs/library
tests/basics

@ -15,4 +15,5 @@ busses
cyphertext cyphertext
dum dum
deque deque
deques
extint extint

@ -16,8 +16,8 @@ Classes
.. function:: deque(iterable, maxlen[, flags]) .. function:: deque(iterable, maxlen[, flags])
Dequeues (double-ended queues) are a list-like container that support O(1) Deques (double-ended queues) are a list-like container that support O(1)
appends and pops from either side of the deque. New dequeues are created appends and pops from either side of the deque. New deques are created
using the following arguments: using the following arguments:
- *iterable* must be the empty tuple, and the new deque is created empty. - *iterable* must be the empty tuple, and the new deque is created empty.

@ -1,4 +1,4 @@
# Tests for dequeues with "check overflow" flag and other extensions # Tests for deques with "check overflow" flag and other extensions
# wrt to CPython. # wrt to CPython.
try: try:
try: try:
@ -22,7 +22,7 @@ try:
except ValueError: except ValueError:
print("ValueError") print("ValueError")
# Only fixed-size dequeues are supported, so length arg is mandatory # Only fixed-size deques are supported, so length arg is mandatory
try: try:
deque(()) deque(())
except TypeError: except TypeError: