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
History
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
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 7.4 KB
README.rst -rw-r--r-- 4.3 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.2 KB
conf.py -rw-r--r-- 6.6 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 51.4 KB
license.rst -rw-r--r-- 43.4 KB
make.bat -rw-r--r-- 5.5 KB

README.rst

back to top