Are python scripts for GRASS written with the __future__ module so they
can be used with python3?
I'm writing all new code with python3 (and will convert the python2
scripts as needed using 2to3) and would like to be able to remove python2.
I'm looking for a tool to tell me which installed applications require
python; I know that grass7.3.svn does.
Are python scripts for GRASS written with the __future__ module so they
can be used with python3?
I'm writing all new code with python3 (and will convert the python2
scripts as needed using 2to3) and would like to be able to remove python2.
I'm looking for a tool to tell me which installed applications require
python; I know that grass7.3.svn does.
as stated in REQUIREMENTS to compile GRASS GIS 7 [1]
Python >= 2.6 (for temporal framework, scripts, wxGUI, and ctypes
interface)
Note: Python 3 support is still in development
some more discussions in [2] and [3]; maybe more in later discussions on the
dev ML.
My question was not as well formed as it should have been. I wonder how
much closer to useful python3 support the development version has come.
Helmut,
Zarch's thread from a couple of years ago is interesting. Has any
developer run 2to3 on python2 code (changing, for example, python2 strings
to python3 bytes and python2 unicode strings to python3 strings)?
My understanding is that python3's 2to3 does most syntax changes for us.
when you do a search in the dev ML about python 3:
Helmut,
I don't follow the dev maillist; didn't think of searching the archives
for it.
AFAIU there is no finally decided conclusion about python3 support; so the
above mentioned statement may be still valid. others may have a deeper
insight.
Okay. I'll cast a user vote for python3 support as soon as possible as
python2 has officially be deprecated.