[issue23493] optimize sort_keys in json module by using operator.itemgetter()
INADA Naoki
report at bugs.python.org
Fri Jul 6 03:47:44 EDT 2018
INADA Naoki <songofacandy at gmail.com> added the comment:
In C version, we don't use key func.
items = PyMapping_Items(dct);
if (items == NULL)
goto bail;
if (s->sort_keys && PyList_Sort(items) < 0) {
Like that, how about removing key function completely?
----------
nosy: +inada.naoki
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue23493>
_______________________________________
More information about the Python-bugs-list
mailing list