diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-04-28 08:20:22 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-04-28 08:20:22 (GMT) |
commit | 748b8bbe020561cdb953b052f7f9d43be83d8081 (patch) | |
tree | 782b257eef3368631c4bcddeee83a682308952cc /Python/marshal.c | |
parent | b3d8d1f76c64998e7e7789955718c1c24b2f84c6 (diff) | |
download | cpython-748b8bbe020561cdb953b052f7f9d43be83d8081.zip cpython-748b8bbe020561cdb953b052f7f9d43be83d8081.tar.gz cpython-748b8bbe020561cdb953b052f7f9d43be83d8081.tar.bz2 |
Fix buglet reported on c.l.py: map(fnc, file.xreadlines()) blows up.
Also a 2.1 bugfix candidate (am I supposed to do something with those?).
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).
Diffstat (limited to 'Python/marshal.c')
0 files changed, 0 insertions, 0 deletions