Commit fc7b3d26 authored by Ezio Melotti's avatar Ezio Melotti

Remove paragraph about inefficiency of lists used as queues now that the example uses deque.

parent 8fb0904f
......@@ -158,11 +158,6 @@ have fast appends and pops from both ends. For example::
>>> queue # Remaining queue in order of arrival
deque(['Michael', 'Terry', 'Graham'])
However, since lists are implemented as an array of elements, they are not the
optimal data structure to use as a queue (the ``pop(0)`` needs to move all
following elements). See :ref:`tut-list-tools` for a look at
:class:`collections.deque`, which is designed to work efficiently as a queue.
.. _tut-functional:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment