On Tue, Dec 8, 2020 at 9:54 PM Paul Sokolovsky <pmis...@gmail.com> wrote:
>
> Hello,
>
> On Tue, 8 Dec 2020 07:29:15 -0300
> "Joao S. O. Bueno" <jsbu...@python.org.br> wrote:
>
> > And how would Python compute the "full basename of the file to be
> > imported"?
>
> The way it does it usually.
>

That involves a number of searches for exact file and/or directory
names, so you can't just search a path arbitrarily.

I would suggest that this is simultaneously too generic to be
meaningful AND insufficiently generic to be useful. It'd be best to
just write what you want directly, using the tools in importlib.

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/QWEY7OJTHBTJVGD4EDKPR2FCQNV7GB6C/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to