How to handle errors?

Bev in TX countryone77 at gmail.com
Wed Nov 9 15:31:34 EST 2016


On UNIX type systems, the Python installer creates multiple links to the 
actual Python executable.  For example in Python 3.5:

python - link to python3.5
python3 - link to python3.5
python3.5 - actual executable

Unless your script specifically requires version 3.5, then it is better 
to use the "python3" link, rather than "python3.5".  That way your 
script would continue to run when you later upgrade to a new version of 
Python 3, such as 3.6.

#!/usr/bin/env python3

Bev in TX

On 10/20/16 10:13 PM, D'Arcy Cain wrote:
> Which would fail on my system because that's Python 3.5.
>
>> For Python 3:  #!/usr/bin/env python3



More information about the Python-list mailing list