Re: [Python-Dev] Clarification of PEP 394 for scripts that run under Python 2 and 3

2015-11-15 Thread Nick Coghlan
On 14 November 2015 at 08:57, Barry Warsaw wrote: > On Nov 13, 2015, at 10:32 PM, Damien George wrote: > >>1. What is the true intent of PEP 394 when only Python 3 is installed? Is >>"python" available or not to run scripts compatible with 2.x and 3.x? >> >>2. Is it possible to

Re: [Python-Dev] Clarification of PEP 394 for scripts that run under Python 2 and 3

2015-11-13 Thread Barry Warsaw
On Nov 13, 2015, at 10:32 PM, Damien George wrote: >1. What is the true intent of PEP 394 when only Python 3 is installed? Is >"python" available or not to run scripts compatible with 2.x and 3.x? > >2. Is it possible to write a shebang line that supports all variations of >Python installations

[Python-Dev] Clarification of PEP 394 for scripts that run under Python 2 and 3

2015-11-13 Thread Damien George
Hi python-dev, We have a Python script that runs correctly under Python 2.6, 2.7 and 3.3+. It is executed on a *nix system using the "python" executable (ie not python2 or python3 specifically). This works just fine for systems that have Python 2 installed, or 2 and 3, or just 3 and symlink