The way I see it, the two statements can co-exist. There’s no need for new types to support a tuple API for backward compatibility - a usage like sys.version_info > (3, 15) is evidently for more reasons than simply backward compatibility.
Would it make sense to change the output of os.stat() to be truly collections.namedtuple (which should be left alone)?
I don’t think that collections.namedtuple supports unnamed members, whereas os.stat() has multiple unnamed members like os.stat()[9] (mtime as an integer).
Yes, we would have to probably add some names to them? Would it be that much a problem?