
February 24th, 2004, 04:54 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Location: London, England
|
|
|
Pass an instance of a file (or file-like) object to the constructor for DumbWriter().
to write to a string you can use a StringIO object, which behaves like a file, but stores the 'file' in memory so that you can extract it later as a string.
Dave - The Developers' Coach
|