prefix search on a large file

Tim Chase python.list at tim.thechases.com
Thu Oct 12 15:35:07 EDT 2006


>      def leaders(sorted_list):
>          held = None
>          for phrase in held:

Ummm...that

	for phrase in None:

doesn't do a whole lot other than give a traceback. :*)

I suspect you mean

	for phrase in sorted_list:

no?

-tkc





More information about the Python-list mailing list