Skip to content

Commit 9e55e15

Browse files
author
sina hosseinizad
committed
misplaced #statements in expanded for loop
1 parent 596d360 commit 9e55e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Notes/06_Generators/01_Iteration_protocol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ _iter = obj.__iter__() # Get iterator object
4242
while True:
4343
try:
4444
x = _iter.__next__() # Get next item
45+
# statements ...
4546
except StopIteration: # No more items
4647
break
47-
# statements ...
4848
```
4949

5050
All the objects that work with the `for-loop` implement this low-level

0 commit comments

Comments
 (0)