Commit 193814c3 authored by Raymond Hettinger's avatar Raymond Hettinger

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

unsized iterable inputs.
parent a3be2584
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment