New submission from Eric Snow <ericsnowcurren...@gmail.com>:

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

----------
assignee: docs@python
components: Documentation
keywords: easy
messages: 347750
nosy: docs@python, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Mention spec_from_loader() in Finder.find_spec() docs.
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37574>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to