Python Forum
versions ending with .0 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: versions ending with .0 (/thread-18878.html)



versions ending with .0 - Skaperen - Jun-05-2019

are Python version numbers ending with .0 equivalent to the same version with the .0 removed? such as 3.7.0 is 3.7 and 3.o is 3 and 2.4.0 is 2.4 and so on?


RE: versions ending with .0 - metulburr - Jun-05-2019

Its MAJOR.MINOR.BUGFIX
Usually 3.7 refers to 3.7.x, any of the bugfix versions. 3 refers to any minor update 3.x.x


RE: versions ending with .0 - Skaperen - Jun-05-2019

but my question is whether to keep the .0 at the end of a version or drop it? is it 3.7 or 3.7.0? suppose you have a dictionary indexed with version keys as tuples, like (3,7,3) for the version released on 25 March 2019. but you want to lookup 3.7. do you use (3,7) or (3,7,0) as the key?