Message348124
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. |
|
Date |
User |
Action |
Args |
2019-07-18 19:07:23 | captain-kark | set | recipients:
+ captain-kark |
2019-07-18 19:07:23 | captain-kark | set | messageid: <1563476843.29.0.0326918684988.issue37623@roundup.psfhosted.org> |
2019-07-18 19:07:23 | captain-kark | link | issue37623 messages |
2019-07-18 19:07:22 | captain-kark | create | |
|