Python versions
Martin (gzlist)
gzlist at googlemail.com
Sun May 16 16:09:05 BST 2010
On 16/05/2010, Russel Winder <russel at russel.org.uk> wrote:
> The bzr script starts
>
> #! /usr/bin/env python
>
> but the code assumes Python 2, thus if a person has Python 3.1 as their
> default Python, the bzr script fails -- there is a build-in assumption
> that Python2.x, x in [4, 5, 6, 7] is the Python that python points at.
> I guess there is no satisfactory way round this as different
> distributions use different numbering schemes so it is not possible to
> guarantee python2 and python3 exist?
My understanding from a python-dev thread on this last year[1] was
that it has been decided[2] that "python3" will be the name to use for
Python 3 scripts for the foreseeable future and "python" will remain
Python 2.
Martin
[1]: <http://mail.python.org/pipermail/python-dev/2009-April/088862.html>
Titled "[Python-Dev] #!/usr/bin/env python --> python3 where
applicable" in case the list server falls over and corrupts all its
links again.
[2]: <http://mail.python.org/pipermail/python-dev/2009-April/088887.html>
More information about the bazaar
mailing list