From bfe14c5c923c52410c729e849fbdf14df9502af3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 16 Apr 1991 08:41:06 +0000 Subject: Add warning about Lambert's bug. --- Objects/listobject.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Objects/listobject.c b/Objects/listobject.c index e496fcb..ce27834 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -344,6 +344,9 @@ list_repeat(a, n) return (object *) np; } +/* XXX The following function has a bug: don't try assigning a + XXX list object to a slice of itself (e.g., a[:1] = a). */ + static int list_ass_slice(a, ilow, ihigh, v) listobject *a; -- cgit v0.12