[PATCH 1 of 5] port win32.py to using the Python ctypes library

Benoit Boissinot bboissin at gmail.com
Tue Feb 8 14:08:13 CST 2011


On Tue, Feb 8, 2011 at 8:42 PM, Matt Mackall <mpm at selenic.com> wrote:
> On Tue, 2011-02-08 at 12:31 -0600, Steve Borho wrote:
>> On Tue, Feb 8, 2011 at 12:14 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
>> > That's quite wrong, since windows.py depends on osutils.c and win32.py
>> > doesn't (by the end of this series).
>> >
>> > I'd like to keep win32.py free of depending on osutils.c, so we can use
>> > win32.py (as modified by this series) for pure mercurial in the future.
>
> Do non-Cpython versions of Python support ctypes? If not, then this is
> not very useful.

Pypy at least tries to. Anyway I think it is much more likely that a
non-CPython supports ctypes (= python ffi) than that a non-CPython
supports the CPython C interface.

cheers,

Benoit


More information about the Mercurial-devel mailing list