Steven D'Aprano <[EMAIL PROTECTED]> wrote: ... > What advantage is there to creating a "list with cartesian product" > subclass of list?
Essentially, syntax sugar -- for some people, being able to code a*b rather than product(a,b) takes on a huge significance; Python chooses to support this syntax variation by special methods in classes, and thus encourages people to create classes if they're keen on the syntax. Alex -- http://mail.python.org/mailman/listinfo/python-list