summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-16 15:18:28 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-16 15:18:28 (GMT)
commit4c4e7df755fc5cf8b4ebef81e2cb85b5895ee14c (patch)
treeb02d4b30cf41cc76188c7876776aa21cd9620f88 /Python
parent32490824b6d5765a72662229d46e48ee34377b2f (diff)
downloadcpython-4c4e7df755fc5cf8b4ebef81e2cb85b5895ee14c.zip
cpython-4c4e7df755fc5cf8b4ebef81e2cb85b5895ee14c.tar.gz
cpython-4c4e7df755fc5cf8b4ebef81e2cb85b5895ee14c.tar.bz2
Tim's latest, with some of my changes (also a TP suggestion) added:
instead of testing whether the list changed size after each comparison, temporarily set the type of the list to an immutable list type. This should allow continued use of the list for legitimate purposes but disallows all operations that can change it in any way. (Changes to the internals of list items are not caught, of cause; that's not possible to detect, and it's not necessary to protect the sort code, either.)
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions