Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example to importlib docs on setting up an importer #70440

Closed
brettcannon opened this issue Jan 31, 2016 · 3 comments
Closed

Add an example to importlib docs on setting up an importer #70440

brettcannon opened this issue Jan 31, 2016 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@brettcannon
Copy link
Member

BPO 26252
Nosy @brettcannon, @pitrou, @matejcik, @ethanfurman, @soltysh, @dstufft, @efahl

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/brettcannon'
closed_at = <Date 2016-03-18.18:55:46.405>
created_at = <Date 2016-01-31.17:56:12.961>
labels = ['docs']
title = 'Add an example to importlib docs on setting up an importer'
updated_at = <Date 2016-03-18.18:55:46.403>
user = 'https://github.com/brettcannon'

bugs.python.org fields:

activity = <Date 2016-03-18.18:55:46.403>
actor = 'brett.cannon'
assignee = 'brett.cannon'
closed = True
closed_date = <Date 2016-03-18.18:55:46.405>
closer = 'brett.cannon'
components = ['Documentation']
creation = <Date 2016-01-31.17:56:12.961>
creator = 'brett.cannon'
dependencies = []
files = []
hgrepos = []
issue_num = 26252
keywords = []
message_count = 3.0
messages = ['259295', '261985', '261986']
nosy_count = 10.0
nosy_names = ['brett.cannon', 'pitrou', 'matejcik', 'hodgestar', 'cvrebert', 'ethan.furman', 'python-dev', 'maciej.szulik', 'dstufft', 'eric.fahlgren']
pr_nums = []
priority = 'low'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue26252'
versions = ['Python 3.6']

@brettcannon
Copy link
Member Author

This past week a lot of people have asked me about how to set up an importer. It's enough to warrant adding an example in the new Examples section of the importlib docs to explain how to do this using the pre-existing classes in importlib.machinery for illustrative purposes.

@brettcannon brettcannon self-assigned this Jan 31, 2016
@brettcannon brettcannon added the docs Documentation in the Doc dir label Jan 31, 2016
@python-dev
Copy link
Mannequin

python-dev mannequin commented Mar 18, 2016

New changeset dc24ab548e2b by Brett Cannon in branch 'default':
Issue bpo-26252: Add an example on how to register a finder
https://hg.python.org/cpython/rev/dc24ab548e2b

@brettcannon
Copy link
Member Author

I added an example on how to register both a meta path and path entry finder. It's a rather simple example, but hopefully using the classes that importlib uses will help also point people towards the appropriate classes to learn about for their own needs.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant