[Python-ideas] Security: remove "." from sys.path?
Juancarlo Añez
apalala at gmail.com
Sat Jun 3 21:06:50 EDT 2017
I'm not comfortable with the subject title of this thread.
I'm comfortable with the experiences and solutions proposed by Nick.
On Sat, Jun 3, 2017 at 8:16 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>
wrote:
> 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 at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170603/7d7a699f/attachment.html>
More information about the Python-ideas
mailing list