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 barry
Recipients barry
Date 2017-12-13.15:41:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:43barrysetrecipients: + barry
2017-12-13 15:41:43barrysetmessageid: <>
2017-12-13 15:41:43barrylinkissue32303 messages
2017-12-13 15:41:43barrycreate