From: Raymond Hettinger Date: Sat, 18 Dec 2004 19:00:59 +0000 (+0000) Subject: Small boost to PySequence_Fast(). Lists build faster than tuples for X-Git-Tag: v2.5a0~2249 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=193814c3082f1b81772009f9b7545278f16c3428;p=python Small boost to PySequence_Fast(). Lists build faster than tuples for unsized iterable inputs. --- diff --git a/Objects/abstract.c b/Objects/abstract.c index 024f97dac1..875c8804f7 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1506,7 +1506,7 @@ PySequence_Fast(PyObject *v, const char *m) return NULL; } - v = PySequence_Tuple(it); + v = PySequence_List(it); Py_DECREF(it); return v;