Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
Sorry, but we've intentionally removed generic compare functions in favor of objects supporting __lt__. That is now the one-way-to-do-it. If needed for convenience, you can use functools.cmp_to_key to automatically build a wrapper. ---------- resolution: -> rejected stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37229> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com