classification
Title: Mention spec_from_loader() in Finder.find_spec() docs.
Type: enhancement Stage: patch review
Components: Documentation Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: brett.cannon, docs@python, eric.snow
Priority: normal Keywords: easy, patch

Created on 2019-07-12 18:16 by eric.snow, last changed 2019-07-13 13:05 by python-dev.

Pull Requests
URL Status Linked Edit
PR 14739 open python-dev, 2019-07-13 13:05
Messages (1)
msg347750 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2019-07-12 18:16
When writing an importer, the finder (either MetaPathFinder or PathEntryFinder) must implement `find_spec()`.  A useful tool for that is the existing `spec_from_loader()`. [1]  The docs for `MetaPathFinder.find_spec()` and `PathEntryFinder.find_spec()` should mention it.


[1] (https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_loader
History
Date User Action Args
2019-07-13 13:05:29python-devsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request14535
2019-07-13 07:23:21xtreaksetnosy: + brett.cannon
2019-07-12 18:16:31eric.snowcreate