]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Tim's latest, with some of my changes (also a TP suggestion) added:
authorGuido van Rossum <guido@python.org>
Tue, 16 Jun 1998 15:18:28 +0000 (15:18 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 16 Jun 1998 15:18:28 +0000 (15:18 +0000)
commit4c4e7df755fc5cf8b4ebef81e2cb85b5895ee14c
treeb02d4b30cf41cc76188c7876776aa21cd9620f88
parent32490824b6d5765a72662229d46e48ee34377b2f
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.)
Objects/listobject.c