[Python-ideas] Security: remove "." from sys.path?
Juancarlo Añez
apalala at gmail.com
Sun Jun 4 20:12:44 EDT 2017
On Sun, Jun 4, 2017 at 6:51 PM, Guido van Rossum <guido at python.org> wrote:
> I really don't want people to start using the "from . import foo" idiom
> for their first steps into programming. It seems a reasonable "defensive
> programming" maneuver to put in scripts and apps made by professional
> Python programmers for surprise-free wide distribution, but (like many of
> those) should not be part of the learning experience.
At the same time, someday you may want the support for 2.7-kind-of issues
to stop.
Requiring "from" (or other ways to make the source of the import
unambiguous) is common in programming languages.
Cheers,
--
Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170604/65cecf23/attachment-0001.html>
More information about the Python-ideas
mailing list