cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-139899: Introduce MetaPathFinder.discover and PathEntryFinder.discover

Open FFY00 opened this issue 3 months ago • 2 comments

  • Issue: gh-139899

📚 Documentation preview 📚: https://cpython-previews--139900.org.readthedocs.build/

FFY00 avatar Oct 10 '25 13:10 FFY00

Still needs tests, but I'll wait to see the feedback on the issue.

FFY00 avatar Oct 10 '25 13:10 FFY00

I've updated the method to take a module spec, instead of a module object, as in some cases the parent might have failed to import.

In a follow-up, I will add a protocol for finders implementing .discover(), as @brettcannon suggested.

FFY00 avatar Dec 10 '25 12:12 FFY00