This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients brett.cannon, captain-kark, eric.smith, ethan.furman, rhettinger, serhiy.storchaka
Date 2019-07-19.19:08:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563563325.76.0.126138759632.issue37623@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-07-19 19:08:45serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, rhettinger, eric.smith, ethan.furman, captain-kark
2019-07-19 19:08:45serhiy.storchakasetmessageid: <1563563325.76.0.126138759632.issue37623@roundup.psfhosted.org>
2019-07-19 19:08:45serhiy.storchakalinkissue37623 messages
2019-07-19 19:08:45serhiy.storchakacreate