Bill Baxter: > > (i) should not construct a tuple. Probably (i,). > > That's Python's solution and it seems to work out ok.
Tuple syntax for 0, 1, n items is one of the few things that I don't like of Python :-) In Python this is an empty tuple: () Or: tuple() This is a tuple with 1 item: x, This is a tuple with 3 items x,y,z Parentheses are not necessary unless you want an empty tuple. Bye, bearophile