[Python-ideas] from __pip__ import
Paul Moore
p.f.moore at gmail.com
Tue Sep 20 06:56:11 EDT 2016
On 20 September 2016 at 11:46, אלעזר <elazarg at gmail.com> wrote:
> So it should be something like
>
> from unsafe.__pip__ import benchmark
>
> Where unsafe is the hypothetical namespace in which exec(), eval() and
> subprocess.run() would have reside given your concerns.
In my opinion, it should be
# Please install benchmark using pip to run this script
Or you should run the script using a dedicated runner like rwt. Or you
can depend on a custom import hook that makes "from __pip__
install..." work as you want. I'm just saying that I don't want core
Python to implicitly install packages for me. But that's simply a
personal opinion. I'm not trying to persuade you you're wrong, just
trying to explain my position. We can agree to differ. It certainly
doesn't seem to me that there's any need for you to modify your
proposal to suit me, it's unlikely I'll like any variation you're
going to be happy with, which is fine (you're under no obligation to
convince me).
Paul
More information about the Python-ideas
mailing list