Message2823
Mainly this patch adds support for iterators to list.extend. This (in particular generators) is needed for setuptools
PyList's setslice was also refactored into a few methods, as it was getting large
I've imported test_list from Python 2.4.4 (and its required list_tests.py and seq_tests.py), and noticed a number of small bugs that are also fixed in this patch:
o raise an exception when a list was modified during sort()
o handle list modifications during iteration breaking list.index (port of
CPython patch #1005778)
o clear list during __new__ to match CPython
o fix list/tuple repeat with an arg < 1
o fix TypeError vs ValueError during sequence slice operations
The test_list in this patch now passes after commenting out a few tests in list_tests.py, some jython bugs, some not. The comments:
# XXX: Need Slice bounds checking (equiv to CPython's PySlice_GetIndicesEx)
# XXX: no decimal module in 2.3
# XXX: pending long/int integration of builtin's method args
# XXX: there are currently some slice bugs in Jython
# XXX: CPython specific, PyList doesn't len() during init |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:47 | admin | link | issue1781556 messages |
2008-02-20 17:18:47 | admin | create | |
|