Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
versions ending with .0
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
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
Recommended Tutorials:
Reply
#3
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020