summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-12-18 19:00:59 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-12-18 19:00:59 (GMT)
commit193814c3082f1b81772009f9b7545278f16c3428 (patch)
tree992cb3f4d7d9443532882738aa47d05177b02867 /Objects/abstract.c
parenta3be25847756c1cabdda2e4b21cc2ed1967e69fd (diff)
downloadcpython-193814c3082f1b81772009f9b7545278f16c3428.zip
cpython-193814c3082f1b81772009f9b7545278f16c3428.tar.gz
cpython-193814c3082f1b81772009f9b7545278f16c3428.tar.bz2
Small boost to PySequence_Fast(). Lists build faster than tuples for
unsized iterable inputs.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 024f97d..875c880 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;