In python 2.7.10, sys.version_info
from the sys
module is:
sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)
What python type is this? It appears to be some sort of a tuple with named elements, and you can refer to either
sys.version_info[0]
or
sys_version_info.major
The type command returns
<type 'sys.version_info'>
which is somewhat unhelpful. I know it is not a named tuple, and it's not a plain tuple, but what is it? How does one construct such an item?