summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/ftpstats.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-01 20:45:31 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-05-01 20:45:31 (GMT)
commitf553f89d45f049e32f5eadc0c78a1e2440745d7a (patch)
tree085e1bcc3a073a4faac1e6cf32e88354142b2994 /Demo/scripts/ftpstats.py
parent47668928e6f02713a1fbd27b434b08b08ca75d1b (diff)
downloadcpython-f553f89d45f049e32f5eadc0c78a1e2440745d7a.zip
cpython-f553f89d45f049e32f5eadc0c78a1e2440745d7a.tar.gz
cpython-f553f89d45f049e32f5eadc0c78a1e2440745d7a.tar.bz2
Generalize list(seq) to work with iterators. This also generalizes list()
to no longer insist that len(seq) be defined. NEEDS DOC CHANGES. This is meant to be a model for how other functions of this ilk (max, filter, etc) can be generalized similarly. Feel encouraged to grab your favorite and convert it! Note some cute consequences: list(file) == file.readlines() == list(file.xreadlines()) list(dict) == dict.keys() list(dict.iteritems()) = dict.items() list(xrange(i, j, k)) == range(i, j, k)
Diffstat (limited to 'Demo/scripts/ftpstats.py')
0 files changed, 0 insertions, 0 deletions