문제

I have a computer with python 2.5
I have written a software that runs on python 2.5 (rather big, over 30k lines of code)

I am thinking about upgrading my computer to python 2.7 because i want to implement multithreading.
However, I have some concerns whether this would break my software or not.

Is there guidelines to make this transition smooth?
any tips?

도움이 되었습니까?

해결책

This would be a good use case for using a Python virtual environment to test your code, see the virtualenv :

http://www.virtualenv.org/en/latest/

You can use the --python flag to specify a Python version in your virtual environment:

virtualenv --python /path/to/python2.7 env_27
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top