This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients brian.curtin, eric.smith, lemburg
Date 2010-01-26.10:07:55
SpamBayes Score 6.896328e-07
Marked as misclassified No
Message-id <4B5EBEFA.5050607@egenix.com>
In-reply-to <1264492735.16.0.146692033017.issue7766@psf.upfronthosting.co.za>
Content
Eric Smith wrote:
> 
> Eric Smith <eric@trueblade.com> added the comment:
> 
> The more I think about this, the more concerned I am about changing the number of elements in the tuple. That's the change that broke platform.py. Maybe we should add a parameter named something like "level", defaulting to 0.
> 
> 0 = existing behavior, but with named tuple
> 1 = return named 9-tuple OSVERSIONINFOEX values
> other values: reserved for future use
> 
> Or maybe we should make it a bool instead, and not worry about future expansion.

The usual approach to such problems is keeping the number of tuple
items and their order the same and only add new items as additional
attributes to the struct.

See the CodecInfo tuple in codecs.py for an example on how this is
done. The tuple is still a 4-tuple, but it provides access to more
items via named attributes.
History
Date User Action Args
2010-01-26 10:07:57lemburgsetrecipients: + lemburg, eric.smith, brian.curtin
2010-01-26 10:07:56lemburglinkissue7766 messages
2010-01-26 10:07:55lemburgcreate