It is way past time that the pywin32 exception objects grew attributes
instead of only being available via indexing. In other words, instead of
writing:
except win32api.error, exc:
if exc[0] == ERROR_CODE: ...
you can say:
except win32api.error, exc:
if exc.winerror == ERROR_CODE:
Mark,
exc.excepinfo == exc[2] - named after the win32 EXCEPINFO struct. Remains
a tuple without attributes.
Would'nt it be a good point to use a named tuple, at least on Pythons
where that is available?
Does anyone see a problem with that?
Not me.
Harald
--
GHUM Harald Massa