[GRASS-dev] [GRASS GIS] #3493: Compilation error with python 2.6

GRASS GIS trac at osgeo.org
Tue Feb 13 13:30:30 PST 2018


#3493: Compilation error with python 2.6
--------------------------+-------------------------
  Reporter:  vesnikos     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  closed
  Priority:  normal       |  Milestone:  7.4.1
 Component:  Compiling    |    Version:  svn-trunk
Resolution:  fixed        |   Keywords:  python
       CPU:  Unspecified  |   Platform:  Linux
--------------------------+-------------------------

Comment (by wenzeslaus):

 Note that `sys.version_info.major` is at more places.
 `sys.version_info[0]` works all right in 3, but in general I'm not sure if
 we can maintain 2.6 compatibility while using 3
 (https://docs.python.org/3/howto/pyporting.html#drop-support-for-
 python-2-6-and-older).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3493#comment:4>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list