revert deque(s)
This commit is contained in:
parent
c2d506b1fa
commit
ce2c3d7dc5
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user