Skip to content

Commit

Permalink
Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
gto76 committed Feb 17, 2019
1 parent c1a2850 commit 95fc38e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ for line in iter(input, ''):
#### Same, but prints a message every time:
```python
from functools import partial
promted_in = partial(input, 'Please enter value: ')
for line in iter(promted_in, ''):
for line in iter(partial(input, 'Please enter value: '), ''):
...
```

Expand Down

0 comments on commit 95fc38e

Please sign in to comment.