Eric V. Smith <e...@trueblade.com> added the comment:
I'm not sure all of this churn is worth it for an unusual use case that can be satisfied by: >>> sorted(pkgutil.iter_modules(None), key=lambda x: (x[1], x[2]) or even: >>> sorted(pkgutil.iter_modules(None), key=operator.itemgetter(1)) (assuming that ispkg doesn't really need to be part of the key) Before reviewing the patch, I suggest you raise the issue on python-dev and get some additional input. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36962> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com