diff options
author | Raymond Hettinger <python@rcn.com> | 2004-12-18 19:00:59 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-12-18 19:00:59 (GMT) |
commit | 193814c3082f1b81772009f9b7545278f16c3428 (patch) | |
tree | 992cb3f4d7d9443532882738aa47d05177b02867 /Objects/abstract.c | |
parent | a3be25847756c1cabdda2e4b21cc2ed1967e69fd (diff) | |
download | cpython-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.c | 2 |
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; |