From 193814c3082f1b81772009f9b7545278f16c3428 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 18 Dec 2004 19:00:59 +0000 Subject: [PATCH] Small boost to PySequence_Fast(). Lists build faster than tuples for unsized iterable inputs. --- Objects/abstract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/abstract.c b/Objects/abstract.c index 024f97dac1e..875c8804f72 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;