terminological obscurity
Aahz
aahz at pythoncraft.com
Sat May 22 19:40:23 EDT 2004
In article <40aec6ff$0$17254$a1866201 at newsreader.visi.com>,
Grant Edwards <grante at visi.com> wrote:
>
>I think the fact that Python lists can be heterogogenous is one of the
>most brilliantly useful things in the language, but apparently we're
>not supposed to use lists like that. Since tuples aren't mutable, I'm
>completely at a loss as to how we're supposed to deal with mutable
>heterogenous sequences. C always required tons of extra work to do
>stuff like that -- creating unions of structures with common header
>fields to tell you what type of union it was and so on.
It's a *guideline*, not an iron-clad restriction. Python is a language
for consenting adults, after all. Part of the point is that it rarely
makes sense to have an immutable homogenous collection.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Adopt A Process -- stop killing all your children!
More information about the Python-list
mailing list