> Define "long enough"; I'm expecting that my BCD module will generate > tuples at least a hundred elements. Hm. Creating such a long tuple in Python code will be the bottleneck in your program, not iterating over it. Have you benchmarked this particular fix? I find it hard to believe that one can even notice the difference. --Guido van Rossum (home page: http://www.python.org/~guido/)