bpo-31928: DOC: Update sys.version_info references to reflect named tu… by csabella · Pull Request #4239 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(major=3, minor=6, micro=3, releaselevel='final', serial=0) looks too verbose. And this is not a valid Python syntax. If you want to expose repr(sys.version_info), you should add sys.version_info at the start and make it yet more verbose.
The current writing looks better to me. This is a tuple of version_info components. It is common to compare version_info with a tuple.
if sys.version_info < (3, 7): ...