Does Ironpython have libraries that replace pywin32 extensions?

I have old Python code that uses pywin32 extensions. Starting with .net, I would like to port it to ironpython.

Old python code uses things like pythoncom.com_error, pywintypes.Time and COM module interfaces that implements the IDispatch interface.

Does ironpython's .net libraries have everything I need to communicate with a COM module? In particular, is there something to replace com_error and Time?

Thank.

+1


source to share


1 answer


Answering my own post .. :-)

  • com_error can be replaced with System.Runtime.InteropServices.COMException
  • Pywintypes.Time can be replaced with System.DateTime, (DATE in IDispatch interface)


That said, if anyone knows of any good documentation on IronPython, COM compatibility, and migrating from pywin32 to .net, please answer.

+2


source







All Articles