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 eric.snow
Recipients barry, brett.cannon, docs@python, eric.snow, ncoghlan
Date 2021-10-04.14:51:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633359113.08.0.945752109224.issue45364@roundup.psfhosted.org>
In-reply-to
Content
Currently ModuleSpec.loader_state is documented briefly once in the importlib docs. [1]  It should have more explanation, e.g. about when/why it should be used.  It should also be mentioned meaningfully in the MetapathFinder [2] and Loader [3] docs, as well as in the language reference [4].

Also see https://github.com/python/cpython/pull/28633#discussion_r720865971.

Note that ModuleSpec (and loader_state) were added in 3.4, so this documentation-only change would be helpful all the way back.  At the least we should update the docs back to 3.9, the current bug-fix release.


[1] https://docs.python.org/3/library/importlib.html#importlib.machinery.ModuleSpec.loader_state
[2] https://docs.python.org/3/library/importlib.html#importlib.abc.MetaPathFinder
[3] https://docs.python.org/3/library/importlib.html#importlib.abc.Loader
[4] https://docs.python.org/3/reference/import.html#loaders or https://docs.python.org/3/reference/import.html#module-spec
History
Date User Action Args
2021-10-04 14:51:53eric.snowsetrecipients: + eric.snow, barry, brett.cannon, ncoghlan, docs@python
2021-10-04 14:51:53eric.snowsetmessageid: <1633359113.08.0.945752109224.issue45364@roundup.psfhosted.org>
2021-10-04 14:51:53eric.snowlinkissue45364 messages
2021-10-04 14:51:52eric.snowcreate