Staging
v0.5.1
https://github.com/python/cpython
Revision 11fa0e48a958716186eb99348a46064e944eccf6 authored by Cristian Ciupitu on 21 February 2019, 07:53:06 UTC, committed by Serhiy Storchaka on 21 February 2019, 07:53:06 UTC
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.
1 parent ebc793d
Raw File
Tip revision: 11fa0e48a958716186eb99348a46064e944eccf6 authored by Cristian Ciupitu on 21 February 2019, 07:53:06 UTC
Doc: fix example for iter() function. (GH-11959)
Tip revision: 11fa0e4
CODE_OF_CONDUCT.md
# Code of Conduct

Please note that all interactions on
[Python Software Foundation](https://www.python.org/psf-landing/)-supported
infrastructure is [covered](https://www.python.org/psf/records/board/minutes/2014-01-06/#management-of-the-psfs-web-properties>)
by the [PSF Code of Conduct](https://www.python.org/psf/codeofconduct/),
which includes all infrastructure used in the development of Python itself
(e.g. mailing lists, issue trackers, GitHub, etc.).

In general this means everyone is expected to be open, considerate, and
respectful of others no matter what their position is within the project.

back to top