
Hasn't Guido said publicly that 4.0 would be the next version from 3.9 (since he hates double digits)? Nick Coghlan kirjoitti 28.01.2018 klo 07:44:
Hi folks,
In https://github.com/python/peps/issues/560, a user pointed out that the current definition of python_version in PEP 508 assumes single-digit major and minor version numbers:
platform.python_version()[:3]
There's a reasonable chance we'll see 3.10 rather than 4.0 in a few years time, at which point that definition would break.
The suggested fix is to amend that definition to be:
".".join(platform.python_version_tuple()[:2])
This seems like a good suggestion to me, so my inclination is to handle this in a similar way to https://www.python.org/dev/peps/pep-0440/#summary-of-changes-to-pep-440: fix it in place, and add a section at the end of the PEP listing the post-publication changes.
Cheers, Nick.