Find an Item in a Sorted List

Joshua Muskovitz joshm at
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
def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"])
lyyrs('Hire me!  I need the work!')

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

More information about the Python-list mailing list