mirror of https://github.com/python/cpython
Small boost to PySequence_Fast(). Lists build faster than tuples for
unsized iterable inputs.
This commit is contained in:
parent
a3be258477
commit
193814c308
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue