<div dir="ltr"><div><div><br><br>On Wed, Feb 28, 2018 at 3:38 PM, Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br>><br>> Hi Sanjeet,<br>><br>> On Tue, Feb 27, 2018 at 3:08 AM, Sanjeet <<a href="mailto:edu.sanjeet@gmail.com">edu.sanjeet@gmail.com</a>> wrote:<br>> > Hi,<br>> ><br>> > My name is Sanjeet Bhatti and I am an MSc. student in Computer Science<br>> > from University of Saskatchewan, Canada. I was going through the list<br>> > of GSOC project ideas of GRASS GIS and I found one that caught my<br>> > interest: "Full support of Python 3 in GRASS GIS".<br>><br>> That's great and for sure an important topic to work on!<br>><br>> > I am familiar with python programming as well as have a basic<br>> > understanding of wxPython. Currently, I am setting up my development<br>> > environment by checking out the development branch (trunk) of GRASS 7<br>> > available at this link[0].<br>> > Are there any initial tasks that I should be doing apart from listing<br>> > the generally used solutions for migrating from Python 2 to 3? And,<br>> > where do I need to submit these?<br>><br>> There are some tickets flagged with "python3":<br>> <a href="https://trac.osgeo.org/grass/query?status=!closed&keywords=~python3">https://trac.osgeo.org/grass/query?status=!closed&keywords=~python3</a><br><br>What is the policy about the python shebang explained in python PEP 394<br><a href="https://www.python.org/dev/peps/pep-0394/">https://www.python.org/dev/peps/pep-0394/</a><br><br>--><br>In order to tolerate differences across platforms, all new code that needs to invoke the Python interpreter should not specify python, but rather should specify either python2 or python3 (or the more specific python2.x and python3.x versions; see the Migration Notes). This distinction should be made in shebangs, when invoking from a shell script, when invoking via the system() call, or when invoking in any other context.<br><--<br><br></div>... unless scripts are deliberately written to be source
compatible with both Python 2.x and 3.x<br><br></div><div>Currently packagers replace python with python2 in the shebang of GRASS scripts.<br><br></div>Markus M<br><br><div><div>><br>> I suppose that more tickets should carry that keyword but they need to<br>> be identified by scanning those with "python" keyword.<br>><br>> The topic suggestions are posted here (as you know):<br>> <a href="https://trac.osgeo.org/grass/wiki/GSoC/2018">https://trac.osgeo.org/grass/wiki/GSoC/2018</a><br>><br>> but did you already check this page?<br>> <a href="https://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students">https://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students</a><br>><br>> Best<br>> Markus<br>><br>><br>><br>> > Thank you,<br>> > Sanjeet<br>> ><br>> > [0] <a href="http://svn.osgeo.org/grass/grass/">svn.osgeo.org/grass/grass/</a><br>> > _______________________________________________<br>> > grass-dev mailing list<br>> > <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>> > <a href="https://lists.osgeo.org/mailman/listinfo/grass-dev">https://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>> _______________________________________________<br>> grass-dev mailing list<br>> <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-dev">https://lists.osgeo.org/mailman/listinfo/grass-dev</a><br></div></div></div>