[Python-ideas] Relative Imports

danish bluecheese danish.bluecheese at gmail.com
Fri Nov 9 18:20:52 EST 2018


It supports, but whenever you get multiple folders there is no clean
solution.
Either there are some sys.path hacks or running things as modules in some
cases.
These are not pleasant at all.
I think we can come up with something better.
Interested in?

On Fri, Nov 9, 2018 at 3:17 PM Steven D'Aprano <steve at pearwood.info> wrote:

> On Fri, Nov 09, 2018 at 02:54:50PM -0800, danish bluecheese wrote:
>
> > Im tired of not being able to make relative imports freely.
>
> Python has supported relative imports for a while now.
>
> https://docs.python.org/3/tutorial/modules.html#intra-package-references
>
> What do you mean?
>
>
> --
> Steve
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181109/34da6ec4/attachment.html>


More information about the Python-ideas mailing list