[Python-ideas] Variable-length, homogeneous tuple: why? (was: Optional static typing -- the crossroads)
Skip Montanaro
skip at pobox.com
Sun Aug 17 13:31:55 CEST 2014
On Sun, Aug 17, 2014 at 3:23 AM, Ben Finney <ben+python at benfinney.id.au> wrote:
> I have encountered many uses of “homogeneous, variable-length sequence”
> and every time a Python tuple is used for that, I perceive a Python list
> would be better precisely *because* it better indicates that semantic
> meaning.
Agreed. While "variable-length" doesn't imply mutability, they often
seem to go hand-in-hand.
Skip
More information about the Python-ideas
mailing list