Time to update Python... 3.14 is available!

Published:

Python 3.14 is available for download. All of my scripts were either written in Python version 3.09 or updated from earlier versions.

How do I begin the upgrade process and ensure my scripts do not break in the process?

Docker!

I can place my current scripts and 3.9 in a local container and upgrade to 3.14 and test them 1 at a time while safely maintaining the 3.09 version that works in the isolated container environment.

I have never used Docker outside of a few tutorials on local block chain servers, so it will be exciting to apply the tech to something of personal interest.

The main benefit of the upgrade is faster in line c/c++, which essentially forms the backbone of machine learning and AI Python packages like Tensor Flow and PyTorch.

The safe upgrade path ensures I can try it out with zero risk to the ability to run my current and past scripts. I know they will run on Python 3.11 as that is the environment in the Raspberry Pi. After success with the Windows laptop, I will then proceed to upgrade the Python version on the Pi as well.

This is one thing I learned about in school, new versions of familiar tools have a tendency to break some things, and by preserving what works, you do not end up stuck with broken code and no idea how to fix it. Remember when new browsers decided to depreciate Java applets?

Next day off is Friday, sounds like a morning project!

Entry #518

Comments

Avatar hypersoniq -
#1
Actually, 3.14 will go in  docker sandbox and I will test the scripts in there while the known good 3.9 stays put.

Now I am planning using industry best practices!
Avatar Todd -
#2
What's your main use case for Python?
Avatar hypersoniq -
#3
For Python, mostly writing lottery scripts, but I also follow along with tutorials for such things as the Django framework and writing scripts that interact with block chains like the stellar network (horizon)

Post a Comment

Please Log In

To use this feature you must be logged into your Lottery Post account.

Not a member yet?

If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.

Register