[issue4285] Use a named tuple for sys.version_info
Raymond Hettinger
report at bugs.python.org
Wed Feb 4 23:33:51 CET 2009
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
> Eric Smith <eric at trueblade.com> added the comment:
> "... as a named tuple" works for me. I'll go with that. Thanks!
+1
Remember, "named tuple" is a concept, not a class. It is anything that
provides attribute access as an alternative to indexed access (see the
definition in the glossary where time.struct_time is given as an
example). Running the collections.named_tuple() factory function
creates a new class with named tuple features, but it is just one of
several ways of creating named tuples.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4285>
_______________________________________
More information about the Python-bugs-list
mailing list