Security News > 2022 > July > An Easier Way to Keep Old Python Code Healthy and Secure
Without refactoring, a shift from Python 2.7 to Python 3.0 often means the code for Python 2.7 just doesn't work that well anymore, or even at all.
Running existing code on an outdated version of Python avoids quite a lot of challenges because you don't need to refactor: you're keeping your code just the way it was.
If you've purchased a specific version - running on, say, Python 2.7, you're stuck and you need to continue running Python 2.7 no matter what.
The responsible thing to do is to update the Python version when needed and to edit the code running on it but there just isn't a painless way to do it.
What if the same could be done for language versions? Well, you can now look forward to running your older Python code, on an old version of Python - but without the risks that it entails.
You'll soon be able to keep your Python code safe and secure without the need to rewrite a single line of code, simply by getting extended lifecycle support for Python - which gives you the same security protection as a full version upgrade.
News URL
https://thehackernews.com/2022/07/an-easier-way-to-keep-old-python-code.html