> I had hoped, however, since the column-formatting parameter has been
> implemented (and works), that there would be a way to leave it in effect for
> cells that I write, as currently happens in Excel.
There is a huge gulf between what Excel presents to the user and what
Excel writes. If you study the file format, you will see that a lot
of things that seem like they ought to be simple are not at all
simple. The way I see it, xlwt is driven first and foremost by the
file format. Of course it tries to provide conveniences, and it
succeeds mightily, perhaps even more than most people realize, because
most people have no idea just how ridiculous the file format is.
I haven't studied the format myself in quite some time (it's a painful
endeavor) which is why I hesitate to answer with an authoritative
voice on any particular detail. But my recollection is that column
formatting serving as a default for cells that "don't otherwise
specify formatting" is an illusion of the Excel GUI. That is, the
running instance of Excel is keeping track of that stuff, but when it
comes time to commit the data to disk, it writes formatting cell by
cell as well, for any "populated" cell.
By its nature, xlwt isn't an interactive session. It's really just a
file writer. So it doesn't keep track of a lot of stuff that the
Excel GUI keeps track of. That's left up to us, or to someone
intrepid enough to write a framework that provides a closer
approximation of a live Excel session.
Incidentally, one of the last things I researched myself regarding the
Excel file format is how to specify repeated printing of the top row
or rows on every page. I didn't get very far because the
documentation available (from Microsoft and from OpenOffice.org) does
not match what Excel was actually doing, as far as I could tell. I
even tried to do brute-force reverse engineering based on saving
various example workbooks in Excel and examining the resulting files
with a hex editor. Obviously my efforts were fruitless.
John