@@ -455,8 +455,8 @@ or subtracting from an empty counter.
455455 Returns a new deque object initialized left-to-right (using :meth: `append `) with
456456 data from *iterable *. If *iterable * is not specified, the new deque is empty.
457457
458- Dequeues are a generalization of stacks and queues (the name is pronounced "deck"
459- and is short for "double-ended queue"). Dequeues support thread-safe, memory
458+ Deques are a generalization of stacks and queues (the name is pronounced "deck"
459+ and is short for "double-ended queue"). Deques support thread-safe, memory
460460 efficient appends and pops from either side of the deque with approximately the
461461 same *O *\ (1) performance in either direction.
462462
@@ -466,11 +466,11 @@ or subtracting from an empty counter.
466466 position of the underlying data representation.
467467
468468
469- If *maxlen * is not specified or is ``None ``, dequeues may grow to an
469+ If *maxlen * is not specified or is ``None ``, deques may grow to an
470470 arbitrary length. Otherwise, the deque is bounded to the specified maximum
471471 length. Once a bounded length deque is full, when new items are added, a
472472 corresponding number of items are discarded from the opposite end. Bounded
473- length dequeues provide functionality similar to the ``tail `` filter in
473+ length deques provide functionality similar to the ``tail `` filter in
474474 Unix. They are also useful for tracking transactions and other pools of data
475475 where only the most recent activity is of interest.
476476
@@ -582,13 +582,13 @@ or subtracting from an empty counter.
582582 .. versionadded :: 3.1
583583
584584
585- In addition to the above, dequeues support iteration, pickling, ``len(d) ``,
585+ In addition to the above, deques support iteration, pickling, ``len(d) ``,
586586``reversed(d) ``, ``copy.copy(d) ``, ``copy.deepcopy(d) ``, membership testing with
587587the :keyword: `in ` operator, and subscript references such as ``d[0] `` to access
588588the first element. Indexed access is *O *\ (1) at both ends but slows to *O *\ (*n *) in
589589the middle. For fast random access, use lists instead.
590590
591- Starting in version 3.5, dequeues support ``__add__() ``, ``__mul__() ``,
591+ Starting in version 3.5, deques support ``__add__() ``, ``__mul__() ``,
592592and ``__imul__() ``.
593593
594594Example:
@@ -650,17 +650,17 @@ Example:
650650:class: `deque ` Recipes
651651^^^^^^^^^^^^^^^^^^^^^^
652652
653- This section shows various approaches to working with dequeues .
653+ This section shows various approaches to working with deques .
654654
655- Bounded length dequeues provide functionality similar to the ``tail `` filter
655+ Bounded length deques provide functionality similar to the ``tail `` filter
656656in Unix::
657657
658658 def tail(filename, n=10):
659659 'Return the last n lines of a file'
660660 with open(filename) as f:
661661 return deque(f, n)
662662
663- Another approach to using dequeues is to maintain a sequence of recently
663+ Another approach to using deques is to maintain a sequence of recently
664664added elements by appending to the right and popping to the left::
665665
666666 def moving_average(iterable, n=3):
0 commit comments