On Tuesday, 27 March 2018 10.45.10 WEST Jean-Marc Lasgouttes wrote:
> I am OK with that. Even Ubuntu 14.04 has python 3.4.
> 
> JMarc

FWIW the reasons are the following:

 * we require version 3.3 because we use the u"" prefix in several places, that 
was not 
supported in previous versions of python 3;

 * python 3.4 does not have (on purpose) any syntactic difference from python 
3.3, the 
development cycle was used to improve the tools for the conversion, and 
interoperability, 
between python 2 and python 3.
There is one new library that is interesting to use in our code `enum`.
https://docs.python.org/3/whatsnew/3.4.html

 * one of the features that introduced in python 3.5 that was not available in 
previous python 3 
version is the interpolation operator for bytes, as opposed to strings where it 
always worked: 
e.g. b"%d" % 5 would not work for python 3.0-3.4.
https://docs.python.org/3.5/whatsnew/3.5.html

Because of the last point I am not sure if actually now we only support python 
3.5+. During the 
2.3 development cycle I have used python exclusively but then I was using 
python 3.6 so I 
would not catch any problem with the previous versions.

So what I will do now is to force the use of python3, we can adapt cmake and 
autotools later if 
we decide to also support python 2.7.

The issue here is if we remove the support for python 2 in lyx 2.4 or the next 
stable release 
(2.5?). In my humble opinion we can remove it now since all the platforms that 
we care have 
python 3 available for a long time and in 1.5 years python 2 will cease to be 
supported even in 
terms of security releases.
-- 
José Abílio

Reply via email to