"Luis P. Mendes" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> | Why?  What is it about the list of tuples that you don't like?
> | Philosophically, it's more in line with Guido's separation of list and
> | tuple.
> I'm not saying that I don't like, I was just curious to know if there
> was a way to do it using exclusively tuples.

A list of lists can be built top down.  A tuple of tuples must be built 
bottom up, and each tuple must be built with one call to tuple().  But 
tuple(it) will take any iterable, so write, say, a generator that yields 
lower-level tuples.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to