A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/348110.html below:

nested tuples

nested tuples nested tuplesTerry Reedy tjreedy at udel.edu
Sat Sep 10 11:38:42 EDT 2005
"Luis P. Mendes" <luis_lupe2XXX at netvisaoXXX.pt> wrote in message 
news:3ofngkF5n00bU1 at individual.net...
> | 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




More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4