Python bindings HOWTO proof reader request

Justus Winter justus at gnupg.org
Wed Mar 21 10:57:14 CET 2018


Tobias Mueller <muelli at cryptobitch.de> writes:

> On Tue, 2018-03-20 at 10:26 +1100, Ben McGinnes wrote:
>> That is my long term plan: to (ideally) port the damned thing off SWIG
>> entirely and to CFFI.
> hrm.
> The benefit of SWIG is that it nicely exposes everything the native
> build does.  So it's more work to not expose an existing gpgme feature
> than it is to implement it in the python bindings.
> Does CFFI also provide that kind of automatic exposure?

Yes.  You feed it a header file and get an object with a method for
every function found in the header.

What it does *not* provide is automatic translation of values at the ffi
boundary.  I consider that a rather cool feature of SWIG.

Justus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20180321/8ec309bb/attachment.sig>


More information about the Gnupg-devel mailing list