[GRASS-dev] Changes between Python 2 and Python 3 that might need attention in GRASS
Pietro
peter.zamb at gmail.com
Mon Jan 13 08:48:55 PST 2014
On Mon, Jan 13, 2014 at 4:25 PM, Moritz Lennert
<mlennert at club.worldonline.be> wrote:
> Issues I think might need attention (but this is without verification within
> the grass python code):
>
> - Print Is A Function
> - Views And Iterators Instead Of Lists
> - PEP 0238: An expression like 1/2 returns a float. Use 1//2 to get the
> truncating behavior.
> - Text Vs. Data Instead Of Unicode Vs. 8-bit
Perhaps we can insert the following import statement in all the python
scripts that we want to make compatible with python3
from __future__ import (nested_scopes, generators, division,
absolute_import, with_statement, print_function, unicode_literals)
so we can start slowly to move from python2 => python3
what do you think?
Pietro
More information about the grass-dev
mailing list