• Guido van Rossum's avatar
    file_getiter(): make iter(file) be equivalent to file.xreadlines(). · 5b021848
    Guido van Rossum yazdı
    This should be faster.
    
    This means:
    
    (1) "for line in file:" won't work if the xreadlines module can't be
        imported.
    
    (2) The body of "for line in file:" shouldn't use the file directly;
        the effects (e.g. of file.readline(), file.seek() or even
        file.tell()) would be undefined because of the buffering that goes
        on in the xreadlines module.
    5b021848
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
setup.py Loading commit data...