Enjoy!
--Joey
Does it? What I see (released version, see
http://pypi.python.org/pypi/xlwt) in ..../xlwt/doc/xlwt.html is:
"""
save(filename_or_stream) [#]
This method is used to save Workbook to a file in native Excel format.
filename_or_stream
This can be a string containing a filename of the file, in
which case the excel file is saved to disk using the name provided.
It can also be a stream object with a write method, such as a
StringIO, in which case the data for the excel file is written to the
stream.
"""
> However, the implementation (using
> CompoundDoc.XlsDoc.save) supports using either a filename or a
> filelike object. Obviously for our purposes, the latter is preferable
> as we're simply passing the object on to the gdata client library for
> uploading to google docs.
>
> Is this behavior I can depend on in the future or a happy coincidence?
Yes.
Cheers,
John
I think someone read the code and not the docs, that's gratitude for you ;-)
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk