[python-win32] Attributes on exceptions

2008-09-29 Thread Mark Hammond
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: .

[python-win32] error: 'CoInitialize not found'

2008-09-29 Thread Solomon.Zewdie.Altek
Hi, is someone among you guys out there familier with this kind of error message or rather knows the cause and the solution?: " File "F:\2_4_2\lib\site-packages\win32com\client\dynamic.py", line 78, in _GetGoodDispatch pywintypes.com_error: (-2147221008, 'CoInitialize not found.', None, None)