]> granicus.if.org Git - python/commit
list_inplace_concat() is now expressed in terms of list_extend() which
authorRaymond Hettinger <python@rcn.com>
Thu, 11 Mar 2004 07:34:19 +0000 (07:34 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 11 Mar 2004 07:34:19 +0000 (07:34 +0000)
commit97bc6182297ab383d54dca4b85fe656a658e7f0d
tree92921c8f2ad33a9e1e62e609681f66c90cf04310
parent4252a7a5d1c0bbc41abeab2ae5ce29f42cd9ace8
list_inplace_concat() is now expressed in terms of list_extend() which
avoids creating an intermediate tuple for iterable arguments other than
lists or tuples.

In other words, a+=b no longer requires extra memory when b is not a
list or tuple.  The list and tuple cases are unchanged.
Objects/listobject.c