[issue36962] Cant sort ModuleInfo instances

Eric V. Smith report at bugs.python.org
Sun May 19 07:37:56 EDT 2019


Eric V. Smith <eric at trueblade.com> added the comment:

Unfortunately your change isn't backward compatible with the existing (namedtuple) version.

I expect this to fail in the dataclass version:
>>> finder, name, ispkg = list(pkgutil.iter_modules(None))[0]

And since this is an enhancement, it can only go in to 3.8. And the window is closing for that, so it's more likely to be 3.9, if we decide that backward compatibility isn't important here.

----------
nosy: +eric.smith
type:  -> enhancement
versions:  -Python 3.6, Python 3.7

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


More information about the Python-bugs-list mailing list