Eric V. Smith <e...@trueblade.com> added the comment:
sorted() does not just delegate to list.sort(): it sorts any iterable. >>> sorted({0:1,2:3,-1:4}) [-1, 0, 2] I think your change conflates the two by pointing to list.sort() from sorted(). ---------- nosy: +eric.smith _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40576> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com