[IronPython] pywin32 on Iron Python?
dinov at microsoft.com
Mon Apr 27 11:41:48 PDT 2009
Not to rain on Jeff's parade but I too have been working on a CTypes
implementation. I'll probably check the initial version into 2.6 in the
next few days but there's still a lot more to go before it's a solid
As of right now running test\test_ctypes.py reports 358 tests run w/
75 failures and 195 errors. So that's only a 25% pass rate but I'm
hoping we'll be able to get it all working in time for 2.6 beta 1.
The current plan is to add it but not have it enabled by default (so
import _ctypes will continue to fail). Once it's passing all or
nearly all of the tests then it'll get flipped on and available by
But I'm generally +1 on using ctypes for interop.
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Michael Foord
> Sent: Monday, April 27, 2009 9:07 AM
> To: Discussion of IronPython
> Subject: Re: [IronPython] pywin32 on Iron Python?
> Vernon Cole wrote:
> > This is an opinion poll...
> > The portion of pywin32 which I maintain, adodbapi, will work in
> > CPython or IronPython. That was (relatively) easy, since it is
> > in pure Python.
> > Pywin32 is a complete package which allows a python programmer to
> > perform many Windows systems administration functions, or use native
> > Windows features easily in an application program. While anything
> > which can be done in pywin32 can also be done (perhaps with more
> > difficulty) using .NET code, it seems that it would be convenient to
> > have the same API available in either environment. This question is
> > meaningful now, since work is starting on a second edition of the
> > "Python Programming on Win32" and we would like to know how much Iron
> > Python information to include.
> > Is there any interest in forking the pywin32 C code into C# so that
> > the entire package can be run in a .NET environment using IronPython?
> Providing the same API as a wrapper over C# would *definitely* be of
> My guess is that some of what pywin32 does there is already a .NET
> wrapper available for (although there might be some API mismatch) and
> for a lot you will need to use P/Invoke.
> Another approach would be to rewrite pywin32 to use ctypes and then
> pywin32 would run on PyPy, Jython, Python *and* IronPython once Jeff
> Hardy has completed his port...
> All the best,
> > --
> > Vernon Cole
> > ---------------------------------------------------------------------
> > _______________________________________________
> > Users mailing list
> > Users at lists.ironpython.com
> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> Users mailing list
> Users at lists.ironpython.com
More information about the Users