• Tim Peters's avatar
    Generalize map() to work with iterators. · 4e9afdca
    Tim Peters yazdı
    NEEDS DOC CHANGES.
    Possibly contentious:  The first time s.next() yields StopIteration (for
    a given map argument s) is the last time map() *tries* s.next().  That
    is, if other sequence args are longer, s will never again contribute
    anything but None values to the result, even if trying s.next() again
    could yield another result.  This is the same behavior map() used to have
    wrt IndexError, so it's the only way to be wholly backward-compatible.
    I'm not a fan of letting StopIteration mean "try again later" anyway.
    4e9afdca
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...