]> granicus.if.org Git - python/commitdiff
complete backout of listobject.c v2.171
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 28 Dec 2003 07:43:56 +0000 (07:43 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 28 Dec 2003 07:43:56 +0000 (07:43 +0000)
Misc/ACKS
Misc/NEWS
Objects/listobject.c

index 8f1cdcd513836e1abc10af8a644b43488f4fffd2..4ddd6a3ec87eae827cd7c12844ad7c76adf91280 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -62,7 +62,6 @@ Finn Bock
 Paul Boddie
 Matthew Boedicker
 David Bolen
-Duncan Booth
 Jurjen Bos
 Peter Bosch
 Eric Bouck
index ce4f90b26e344ae3b3171c4ca8a888579683e7f2..fbd572f3325dc1ac28291f5ded9c107a74083d44 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -118,14 +118,6 @@ Core and builtins
   same as split() except that it scans the string from the end
   working towards the beginning.  See SF feature request 801847.
 
-- in a thread on comp.lang.python, several people noted that list()
-  was much slower than in 2.1 and earlier versions of Python, when used
-  to create new lists from existing lists.  Duncan Booth did some
-  research that uncovered an optimisation that, for lists below
-  about 100 elements, was actually slower than the normal case. The
-  special case criteria have been tightened to rectify the performance
-  regression.
-
 Extension modules
 -----------------
 
index c9e66044c71394594a4b32dd03980b6ced0b50e3..47673be9770797459f967e52ae5e58b4982e389f 100644 (file)
@@ -2242,10 +2242,6 @@ list_fill(PyListObject *result, PyObject *v)
        int n;             /* guess for result list size */
        int i;
 
-       /* if source is destination, we're done. */
-       if (v == (PyObject *)result)
-               return 0;
-
        n = result->ob_size;
 
        /* Special-case list(a_list), for speed. */