Mercurial > cpython-lru_cache-weakref
comparison Python/structmember.c @ 17944:2edaa8e9f381 2.1
Backport Tim's checkin 2.199:
Fix buglet reported on c.l.py: map(fnc, file.xreadlines()) blows up.
Took away map()'s insistence that sequences support __len__, and cleaned
up the convoluted code that made it *look* like it really cared about
__len__ (in fact the old ->len field was only *used* as a flag bit, as
the main loop only looked at its sign bit, setting the field to -1 when
IndexError got raised; renamed the field to ->saw_IndexError instead).
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Wed, 23 May 2001 12:46:45 +0000 |
| parents | 7b3476c1382e |
| children | 8522b022f80a |
comparison
equal
deleted
inserted
replaced
| 17943:d0798b3a38c1 | 17944:2edaa8e9f381 |
|---|
