<div dir="auto"><div>But isn't that already possible by porting? Someone can port to py3 and maintain only that.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 10, 2020, 5:49 AM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So that they can continue to maintain one source code that will<br>
run on either Python 2 or Python 3.<br>
<br>
On Mon, Aug 10, 2020 at 05:33:47AM +0530, Sumit Srivastava wrote:<br>
> If there's only little advantage for porting to six over porting to py3, why<br>
> are people still using six?<br>
> <br>
> On Mon, Aug 10, 2020, 5:25 AM James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank" rel="noreferrer">quozl@laptop.org</a>> wrote:<br>
> <br>
> No, we're not using it everywhere. It is easier to port to Python 3<br>
> than to port using Six, and there's little advantage to having an<br>
> activity source code compatible with both versions of Python.<br>
> <br>
> For new installs of Sugar, or when using Fedora, Debian, or Ubuntu,<br>
> only Python 3 activities are used. This is because those<br>
> distributions have chosen for cost reasons to remove support rather<br>
> than take over security maintenance of Python from the Python<br>
> Foundation. (Red Hat Enterprise Linux and the other paid enterprise<br>
> Linux distributions have kept Python 2 available.)<br>
> <br>
> For OLPC OS, both Python 2 and Python 3 activities can be used.<br>
> <br>
> On Mon, Aug 10, 2020 at 04:42:36AM +0530, Sumit Srivastava wrote:<br>
> > Awesome! Are we using six everywhere?<br>
> ><br>
> > On Mon, Aug 10, 2020, 4:41 AM James Cameron <[1][2]<a href="mailto:quozl@laptop.org" target="_blank" rel="noreferrer">quozl@laptop.org</a>><br>
> wrote:<br>
> ><br>
> > Yes, well done, it is very useful. We have used Six on the Sugar<br>
> > Toolkit so that Python 2 activities can continue to run.<br>
> ><br>
> > On Mon, Aug 10, 2020 at 01:10:06AM +0530, Sumit Srivastava wrote:<br>
> > > Hi all,<br>
> > ><br>
> > > I think this might be useful for making activities compatible. I<br>
> found<br>
> > this<br>
> > > while reading the codebase of a software I was using.<br>
> > ><br>
> > > [1][2][3]<a href="https://six.readthedocs.io/" rel="noreferrer noreferrer" target="_blank">https://six.readthedocs.io/</a><br>
> > > [2][3][4]<a href="https://github.com/benjaminp/six" rel="noreferrer noreferrer" target="_blank">https://github.com/benjaminp/six</a><br>
> > ><br>
> > > Regards,<br>
> > > Sumit<br>
> > > [t]ᐧ<br>
> > ><br>
> > > References:<br>
> > ><br>
> > > [1] [4][5]<a href="https://six.readthedocs.io/" rel="noreferrer noreferrer" target="_blank">https://six.readthedocs.io/</a><br>
> > > [2] [5][6]<a href="https://github.com/benjaminp/six" rel="noreferrer noreferrer" target="_blank">https://github.com/benjaminp/six</a><br>
> ><br>
> > > _______________________________________________<br>
> > > Sugar-devel mailing list<br>
> > > [6][7]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank" rel="noreferrer">Sugar-devel@lists.sugarlabs.org</a><br>
> > > [7][8]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> ><br>
> > --<br>
> > James Cameron<br>
> > [8][9]<a href="http://quozl.netrek.org/" rel="noreferrer noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> ><br>
> > References:<br>
> ><br>
> > [1] mailto:[10]<a href="mailto:quozl@laptop.org" target="_blank" rel="noreferrer">quozl@laptop.org</a><br>
> > [2] [11]<a href="https://six.readthedocs.io/" rel="noreferrer noreferrer" target="_blank">https://six.readthedocs.io/</a><br>
> > [3] [12]<a href="https://github.com/benjaminp/six" rel="noreferrer noreferrer" target="_blank">https://github.com/benjaminp/six</a><br>
> > [4] [13]<a href="https://six.readthedocs.io/" rel="noreferrer noreferrer" target="_blank">https://six.readthedocs.io/</a><br>
> > [5] [14]<a href="https://github.com/benjaminp/six" rel="noreferrer noreferrer" target="_blank">https://github.com/benjaminp/six</a><br>
> > [6] mailto:[15]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank" rel="noreferrer">Sugar-devel@lists.sugarlabs.org</a><br>
> > [7] [16]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> > [8] [17]<a href="http://quozl.netrek.org/" rel="noreferrer noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> <br>
> --<br>
> James Cameron<br>
> [18]<a href="http://quozl.netrek.org/" rel="noreferrer noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> <br>
> References:<br>
> <br>
> [1] mailto:<a href="mailto:quozl@laptop.org" target="_blank" rel="noreferrer">quozl@laptop.org</a><br>
> [2] mailto:<a href="mailto:quozl@laptop.org" target="_blank" rel="noreferrer">quozl@laptop.org</a><br>
> [3] <a href="https://six.readthedocs.io/" rel="noreferrer noreferrer" target="_blank">https://six.readthedocs.io/</a><br>
> [4] <a href="https://github.com/benjaminp/six" rel="noreferrer noreferrer" target="_blank">https://github.com/benjaminp/six</a><br>
> [5] <a href="https://six.readthedocs.io/" rel="noreferrer noreferrer" target="_blank">https://six.readthedocs.io/</a><br>
> [6] <a href="https://github.com/benjaminp/six" rel="noreferrer noreferrer" target="_blank">https://github.com/benjaminp/six</a><br>
> [7] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank" rel="noreferrer">Sugar-devel@lists.sugarlabs.org</a><br>
> [8] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [9] <a href="http://quozl.netrek.org/" rel="noreferrer noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [10] mailto:<a href="mailto:quozl@laptop.org" target="_blank" rel="noreferrer">quozl@laptop.org</a><br>
> [11] <a href="https://six.readthedocs.io/" rel="noreferrer noreferrer" target="_blank">https://six.readthedocs.io/</a><br>
> [12] <a href="https://github.com/benjaminp/six" rel="noreferrer noreferrer" target="_blank">https://github.com/benjaminp/six</a><br>
> [13] <a href="https://six.readthedocs.io/" rel="noreferrer noreferrer" target="_blank">https://six.readthedocs.io/</a><br>
> [14] <a href="https://github.com/benjaminp/six" rel="noreferrer noreferrer" target="_blank">https://github.com/benjaminp/six</a><br>
> [15] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank" rel="noreferrer">Sugar-devel@lists.sugarlabs.org</a><br>
> [16] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [17] <a href="http://quozl.netrek.org/" rel="noreferrer noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [18] <a href="http://quozl.netrek.org/" rel="noreferrer noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
<br>
-- <br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</blockquote></div></div></div>