Should I install the modern (py3.10) or compatibility+ (py 3.8) version?
For most users the modern version (which uses Python 3.10) is recommended.
I have personally been using the Python 3.8 version but at this stage I think I should probably just make edits to my code when the modern version fails.
For me the issue is with Auto translate code components. The translation fails if there is a mathematical operator in a list index. In earlier versions a = b[c[0]]
and a = b[trials.thisN]
were an issue but now they translate correctly.
However, a = b[c+1]
gives an error.
The expression is still valid Python code and works locally but will fail online. With Python 3.8 the code is correctly translate.
My guess is that the issue is with the brackets that appear in the JavaScript translation a = b[(c + 1)];
.
The solution is to perform the calculation before using the result as an index.
To check which version you have installed go to Help / System Info
Please let me know on this thread if you encounter other reasons to use Python 3.8 instead of Python 3.10.