Message308204
Let's say I have a namespace package:
>>> importlib_resources.tests.data03.namespace
<module 'importlib_resources.tests.data03.namespace' (namespace)>
This package has a non-None __loader__ but a None __spec__.loader:
>>> importlib_resources.tests.data03.namespace.__loader__
<_frozen_importlib_external._NamespaceLoader object at 0x1043c1588>
>>> importlib_resources.tests.data03.namespace.__spec__.loader
>>>
That seems inconsistent and broken. I suspect it's just an oversight that the __spec__.loader for a namespace package isn't getting set. It's probably been this way forever.
See also Issue31554 |
|
| Date |
User |
Action |
Args |
| 2017-12-13 15:41:43 | barry | set | recipients:
+ barry |
| 2017-12-13 15:41:43 | barry | set | messageid: <[email protected]> |
| 2017-12-13 15:41:43 | barry | link | issue32303 messages |
| 2017-12-13 15:41:43 | barry | create | |
|