don't know your intend so have no idea what it is for. However, you are doing :
wordlist=contDict.keys() wordlist.sort() for every word processed yet you don't use the content of x in anyway during the loop. Even if you need one fresh snapshot of contDict after each word, I don't see the need for sorting. seems like wasting cycles to me. [EMAIL PROTECTED] wrote: > Actually I create a seperate wordlist for each so called line.Here line > I mean would be a paragraph in future...so I will have to recreate the > wordlist for each loop -- http://mail.python.org/mailman/listinfo/python-list