Skip to content

[3.7] Doc: fix example for iter() function. (GH-11959)#11971

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-11fa0e4-3.7
Feb 21, 2019
Merged

[3.7] Doc: fix example for iter() function. (GH-11959)#11971
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-11fa0e4-3.7

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

read() returns bytes for a file opened in binary mode,
so b'' should be used as a sentinel instead of ''.
Otherwise the loop will be infinite.
(cherry picked from commit 11fa0e4)

Co-authored-by: Cristian Ciupitu cristian.ciupitu@yahoo.com

read() returns bytes for a file opened in binary mode,
so b'' should be used as a sentinel instead of ''.
Otherwise the loop will be infinite.
(cherry picked from commit 11fa0e4)

Co-authored-by: Cristian Ciupitu <cristian.ciupitu@yahoo.com>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@ciupicri and @serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 92ac01b into python:3.7 Feb 21, 2019
@miss-islington miss-islington deleted the backport-11fa0e4-3.7 branch February 21, 2019 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants