[Python-ideas] from __pip__ import

Chris Angelico rosuav at gmail.com
Mon Sep 19 14:57:30 EDT 2016


On Tue, Sep 20, 2016 at 4:52 AM, אלעזר <elazarg at gmail.com> wrote:
> Wow chris, that's a nice one!
>
> Of course it doesn't  address the issues - for example, running a python
> script from the file manager will result in a failed execution, unexplained.

True, it doesn't; but if anything else goes wrong, you have the same
problem. Python is built around the use of exceptions. So I would just
add something around the outside - if you're telling people to
download and run this script, tell them that if it doesn't work first
time, they should open up a terminal/console and run it from there.
That'd cope with any sort of error (including that Python itself isn't
installed, which is something you can't fix from within Python).

ChrisA


More information about the Python-ideas mailing list