David> I think that's POOR programming practice! Then how would you write the following loop? i = 0; while i < len(n) and x[i] != y: i += 1 -- Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark