Some thougts on cartesian products

Erik Max Francis max at alcyone.com
Mon Jan 23 12:13:55 CET 2006


Bryan Olson wrote:

> Christoph Zwerschke wrote:
> [...]
>> That may be the main problem to decide whether the cartesian product 
>> should return a generator or a list.
> 
> The Cartesion product is a set.

Sets are iterable, so that isn't an answer.  If it's a set, then it 
should either be a generator or a set.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   Nothing is potent against love save impotence.
   -- Samuel Butler



More information about the Python-list mailing list