Skip to content

Commit 386360e

Browse files
committed
Merge pull request yasoob#33 from homeworkprod/patch-1
Create deque instance directly from range object.
2 parents 9780b29 + c54553f commit 386360e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ You can pop values from both sides of the deque:
158158

159159
.. code:: python
160160
161-
d = deque([i for i in range(5)])
161+
d = deque(range(5))
162162
print(len(d))
163163
# Output: 5
164164

0 commit comments

Comments
 (0)