]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport Tim's checkin 2.199:
authorThomas Wouters <thomas@python.org>
Wed, 23 May 2001 12:46:45 +0000 (12:46 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 23 May 2001 12:46:45 +0000 (12:46 +0000)
commitdb9486f0b36066234cf87b5fb758a40ce9fa8871
treed6c9b50cc2cad50942dea72c5cd3db427fa8b0a2
parent930874efdd5bbe3b90518e52f59acc0bd5e41180
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).
Python/bltinmodule.c