Try:

     def leaders(sorted_list):
         held = None
         for phrase in held:
             if held is None or not phrase.startswith(held):
                 held = row
                 yield held

     print list(leaders(sorted(data)))

--Scott David Daniels
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to