A suggestion: fromstring accepts a string - tostring returns a string fromfile accepts a file - tofile returns None This is to suggest that generic.tofile be modified to return the file object, which may be open or closed. Colin W.