Browse Source

Iterator

pull/27/head
Jure Šorn 5 years ago
parent
commit
95fc38ef1d
1 changed files with 1 additions and 2 deletions
  1. 3
      README.md

3
README.md

@ -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: '), ''):
...
```

Loading…
Cancel
Save