RE: convert COM obj to integer

2005-11-02 Thread Bell, Kevin
ailto:[EMAIL PROTECTED] On Behalf Of Steve M Sent: Wednesday, November 02, 2005 3:56 PM To: python-list@python.org Subject: Re: convert COM obj to integer I don't know exactly what a COM object is, but those aren't them. The win32com package takes care of converting everything to Python types.

Re: convert COM obj to integer

2005-11-02 Thread Steve M
I don't know exactly what a COM object is, but those aren't them. The win32com package takes care of converting everything to Python types. The excel call returns a tuple of tuples. That is, the outer tuple is the sequence of rows, and each such row is itself a tuple with one member per column requ

convert COM obj to integer

2005-11-02 Thread Bell, Kevin
I'm pulling a range of cells from Excel into a list and the data in Excel is a number or possibly some text like an asterisk. Each member of the list is a com object (I think) and I'm converting them to integers (or to None if not numberic) but my method seems very silly. Is this the best way to g