[issue33989] ms.key_compare is not initialized in all pathes of list_sort_impl

Elliot Gorokhovsky report at bugs.python.org
Sat Jun 30 01:22:59 EDT 2018


Elliot Gorokhovsky <elliot.gorokhovsky at gmail.com> added the comment:

You can always fall back on safe_object_compare. So unless there's an
obvious reason why your edge case can't be triggered, it would be worth
putting that in as a failsafe. The additional branch should be 100%
predictable, so there shouldn't be any performance penalty.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33989>
_______________________________________


More information about the Python-bugs-list mailing list