Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Doc/tutorial/datastructures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ have fast appends and pops from both ends. For example::
'John'
>>> queue # Remaining queue in order of arrival
deque(['Michael', 'Terry', 'Graham'])
>>> queue.appendleft("John") # John is added to front of queue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>>> queue.appendleft("John") # John is added to front of queue
>>> queue.appendleft("John") # John never actually left, add him back

The comments describe a situation where people are coming/going.

>>> queue
deque(['John', 'Michael', 'Terry', 'Graham'])


.. _tut-listcomps:
Expand Down
Loading