Kodi Community Forum
Android Python 2.6 instead of 2.7. Why? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Android Python 2.6 instead of 2.7. Why? (/showthread.php?tid=269684)



Python 2.6 instead of 2.7. Why? - Taifxx - 2016-04-16

When I run addon on Windows (kodi 15/16) all is well. When run on android I get 'invalid syntax error'. The reason is the requirement of Python 2.6 syntax.

Example:
mySet = {arg1, arg2, arg3}. Result: invalid syntax.
mySet = Set([arg1, arg2, arg3]). Result: ok!

As I know in Kodi 15/16 Python 2.7 supported for all platforms. Or not?


RE: Python 2.6 instead of 2.7. Why? - ronie - 2016-04-16

nope, kodi 17 will ship with python 2.7 on all platforms.


RE: Python 2.6 instead of 2.7. Why? - Taifxx - 2016-04-16

Do I understand correctly? 2.7 is not ported to Android? Or I can use it (forcibly)? Can I use 'import __future__' module?


RE: Python 2.6 instead of 2.7. Why? - ronie - 2016-04-16

kodi 15/16 ship with python 2.6 on android
kodi 17 ships with python 2.7 on android