Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Dataclasses are even more heavyweight than namedtuples. I am not sure that they should be used in the stdlib now. Especially in this case. I think the common use of iter_modules() is immediate unpacking of the yielded tuple: for importer, modname, ispkg in pkgutil.iter_modules(): ... Your change breaks it. I agree with Eric and Berker that this issue should be closed. ---------- nosy: +serhiy.storchaka _______________________________________ 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