Message 342846 - Python tracker

Message342846

Author eric.smith
Recipients BTaskaya, eric.smith
Date 2019-05-19.13:20:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558272046.11.0.0589727202151.issue36962@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-05-19 13:20:46eric.smithsetrecipients: + eric.smith, BTaskaya
2019-05-19 13:20:46eric.smithsetmessageid: <1558272046.11.0.0589727202151.issue36962@roundup.psfhosted.org>
2019-05-19 13:20:46eric.smithlinkissue36962 messages
2019-05-19 13:20:45eric.smithcreate