[LTP] [PATCH v3] *.py : convert python2 to python3

Petr Vorel pvorel@suse.cz
Wed Apr 25 15:58:29 CEST 2018


Hi Xiao,

> Hi Petr,

> It seems that many distros still use python2 interpreter instead of python3 by default.
> Do you want to install python3 package forcely before testing python code in ltp?
Yes, LTP now depends optionally on Python3. Given short time for python2 [1], it didn't
make much sense to support both Python 2 & 3.

> Is it necessary to make sure all python3 code are compatible with python2 interpreter?
Current code is Python 3 compatible. Or have you find any issue?

Actually we've been thinking to remove all python from LTP because is not usually on
embedded Linux (well, Python can be cross-compiled for embedded [2], but 1) some devices
are still to slow to have it 2) it wouldn't be easy to install it on embedded device
yourself).

> Thanks,
> Xiao Yang

Kind regards,
Petr

[1] https://pythonclock.org/
[2] https://wiki.python.org/moin/EmbeddedPython


More information about the ltp mailing list