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 captain-kark
Recipients captain-kark
Date 2019-07-18.19:07:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563476843.29.0.0326918684988.issue37623@roundup.psfhosted.org>
In-reply-to
Content
I wanted to return a namedtuple from a concrete implementation of an importlib.abc.Loader base class, and wasn't able to provide a __spec__ property on the underlying class behind the namedtuple. All return values from importlib.abc.Loader#create_module need to have a __spec__ property set.

Similar to the namedtuple optional argument 'module', I'd like to be able to pass in a 'spec', and add this value to result.__spec__ before returning the final result.
History
Date User Action Args
2019-07-18 19:07:23captain-karksetrecipients: + captain-kark
2019-07-18 19:07:23captain-karksetmessageid: <1563476843.29.0.0326918684988.issue37623@roundup.psfhosted.org>
2019-07-18 19:07:23captain-karklinkissue37623 messages
2019-07-18 19:07:22captain-karkcreate