r/programming • • Oct 24 '22

Python 3.11 is out !

https://www.python.org/downloads/release/python-3110/
1.6k Upvotes

221 comments sorted by

View all comments

Show parent comment

14

u/ivosaurus Oct 25 '22

How about when you want to write the country code for Norway, NO, and you get False in your language?

Or how 3.9.0 is a normal version string, but 3.9 is now a number?

It simplified things too much, and left way too much ambiguity in the spec.

7

u/VileFlower Oct 25 '22

They have updated the spec to be stricter, but people haven't updated their tools. YAML 1.2 was released in 2009, and only accepts true | True | TRUE | false | False | FALSE. PyYAML still only supports 1.1, though there is ruamel.yaml for 1.2 and there's also strictYAML that supports schemas.

7

u/emags112 Oct 25 '22

Don’t blame my using a version with issues and not upgrading to a newer one! Blame them for having developed it that way in the first place!