[GRASS-dev] Python 3 or Python 2.6?

On Dec 16, 2008, at 3:36 AM, <grass-dev-request@lists.osgeo.org> <grass-dev-request@lists.osgeo.org > wrote:

Date: Tue, 16 Dec 2008 11:36:43 +0100
From: "Marco Pasetti" <marcopstt@gmail.com>
Subject: [GRASS-dev] Python 3 or Python 2.6?
To: "GRASS Developer Mailing List" <grass-dev@lists.osgeo.org>
Message-ID: <FD382AAFDB6D45CC965B128C25C51203@HPMarco>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
  reply-type=original

Dear all,

I'm updating the GRASS build environment for MS Windows, and looking for
some news in the dependencies I found that Python is currently shipped in
two versions: 2.6.1 and 3.
What should I install? Thanks,

Marco

I have not tried Python 3, but the docs say that it is not backward compatible with Python 2.x. So I'd stick with 2.6.

Has anyone out there tried Python 3?

Michael

Hi,

2008/12/16 Michael Barton <michael.barton@asu.edu>:

I have not tried Python 3, but the docs say that it is not backward
compatible with Python 2.x. So I'd stick with 2.6.

right, see

http://docs.python.org/dev/3.0/whatsnew/3.0.html

Has anyone out there tried Python 3?

this would required changes in wxGUI code...

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Michael wrote:

I have not tried Python 3, but the docs say that it is not
backward compatible with Python 2.x. So I'd stick with 2.6.

Has anyone out there tried Python 3?

there are some ways to try python 3 without actually "leaving home".

stuff to try:

* http://docs.python.org/library/2to3.html
* import __future__
   http://docs.python.org/library/future_builtins.html
   http://www.python.org/doc/2.5.2/lib/module-future.html
* python2.6 -3

Hamish