Re: [python-win32] TypeError: PyTime cannot be compared to other types

2009-03-15 Thread Mark Hammond
On 14/03/2009 2:39 AM, Randy Syring wrote: I have a Python script that interacts with Excel files through COM. In one section of the code, I do a loop that compares values: def find_row(self, sheet, needle, column, start=1, end=100): for x in range(start, end+1): if

[python-win32] TypeError: PyTime cannot be compared to other types

2009-03-13 Thread Randy Syring
I have a Python script that interacts with Excel files through COM. In one section of the code, I do a loop that compares values: def find_row(self, sheet, needle, column, start=1, end=100): for x in range(start, end+1): if sheet.Range('%s%s' % (column, x)).Value