list to string

David LeBlanc whisper at oz.net
Tue Jul 23 16:08:59 EDT 2002


I have this code:

fn = file('foo.txt')

txt = fn.readlines()

str = ?something?(txt) # or txt.?something?()...

What's the something? This is probably so obvious, i'm going to feel dumb,
but I havn't been able to find anything in any doc I've looked at.

David LeBlanc
Seattle, WA USA





More information about the Python-list mailing list