summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-04-16 08:41:06 (GMT)
committerGuido van Rossum <guido@python.org>1991-04-16 08:41:06 (GMT)
commitbfe14c5c923c52410c729e849fbdf14df9502af3 (patch)
treed59c8ecbf194606d6d7df851a6ba564a8dd99903
parentac029489d06907aeb85ae243db84b6834e9d82aa (diff)
downloadcpython-bfe14c5c923c52410c729e849fbdf14df9502af3.zip
cpython-bfe14c5c923c52410c729e849fbdf14df9502af3.tar.gz
cpython-bfe14c5c923c52410c729e849fbdf14df9502af3.tar.bz2
Add warning about Lambert's bug.
-rw-r--r--Objects/listobject.c3
1 files changed, 3 insertions, 0 deletions
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;