comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

safearray.py: RangeCheck error if empty array

Open h3nr1c0 opened this issue 7 years ago • 0 comments

function: def _get_row(self, dim, indices, lowerbounds, upperbounds):

exception at line when: dim >= len(indices): restore = indices[dim]

bugfix: result = [] if dim < len(indices): restore = indices[dim] else: return tuple(result) # for compatibility with pywin32.

h3nr1c0 avatar Sep 06 '18 14:09 h3nr1c0