In message <i8i1h8$dc...@news.eternal-september.org>, BartC wrote: > I use this syntax where there are two possibilities chosen according to > condition 'a': > > (a | b | c)
Algol 68! > x = ("One","Two","Three") [i-1] > > While this works for i = 1,2,3, it goes funny for i=0,-1,-2, and generates > an error for the rest ... x = {1 : "One", 2 : "Two", 3 : "Three"}.get(i, "None Of The Above") -- http://mail.python.org/mailman/listinfo/python-list