Find an Item in a Sorted List

Joshua Muskovitz joshm at taconic.net
Wed Feb 27 00:57:02 CET 2002


Perhaps it would be better to use an iterator on the file, ala:

file = open(...)
for line in file:
    # check to see if this is the proper line, etc

--
# Joshua Muskovitz
# joshm at taconic.net
def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"])
lyyrs('Hire me!  I need the work!')




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list