Soni L. wrote:
How about `import self.thing` (where "self" implies same dir as the current .py

That wouldn't provide quite the same functionality, since
currently a module alongside the main py file can be imported
from anywhere, including .py files inside a package.

Also I think it would be confusing to have two very similar
but subtly different relative import mechanisms.

--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to