By using this website, you agree to our privacy policy [ Ok ]

Choose Python version: features or syntax?

by Abdur-Rahmaan Janhangeer



Nice points but point on not using the latest version is becoming less and less true. Since 3.7 switching to the latest version has become more and more of a habit. It’s not at all rare to find libraries already supporting the version or supporting only the new version (a new lib)

For 3.7 if you were not using 3.7 when it was the current version you were in for big surprises. Normally it’s no big deal to be some 3 versions behind but recently the Python team has been really nice.

3.8 has the := operator which is known as the walrus operator. It lets you create and assign variable on the fly, even in loop. Dustin Ingram made a nice intro to it. I met people who were waiting for that feature

The best deal for a Python programmer is not to choose only one version on their pc. It is to choose one version for developing something crucial but for the rest you feel free. Myself i have more than one version installed, even a 2.7. For a crucial project i won’t use 3.8 syntax but i use it as my everyday Python. I have found <10 projects i need which does not support it.

The thing is not about the version itself as it’s about the syntax. If you use a 3.7 syntax which 3.8 supports, you won’t be hit by any consequent roadblock. Version is in this case is meaningless.