Small boost to PySequence_Fast(). Lists build faster than tuples for

unsized iterable inputs.
This commit is contained in:
Raymond Hettinger 2004-12-18 19:00:59 +00:00
parent a3be258477
commit 193814c308
1 changed files with 1 additions and 1 deletions

View File

@ -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;