Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
It is not hard to set __spec__ (as well as any other attributes) after creating a namedtuple class. A = namedtuple(...) A.__spec__ = ... or class A(namedtuple(...)): __spec__ = ... __spec__ do not have anything to namedtuple. It is not like __module__ or __doc__ setting which would benefit almost every public namedtuple class. It is not even special for types. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37623> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com