Michael Spencer wrote: > > def compare_forms(sequence): > """test whether all groups of a sequence have the same form""" > for length in range(4,2,-1): # look for longest match first
oops, make that range(4,1,-1) or, simply (4,3,2) Michael -- http://mail.python.org/mailman/listinfo/python-list