[PATCH] python: default op_keylist_start parameters.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Dec 5 14:26:39 CET 2016

On Mon 2016-12-05 06:55:50 -0500, Justus Winter wrote:
> I'm not sure whether we want to do this or not.  Currently, we provide a
> very faithful "C-like API", and a idiomatic Python API on top.  And
> indeed, in the idiomatic key listing API we provide exactly these
> defaults:
>     def keylist(self, pattern=None, secret=False):
>         """List keys
>         Keyword arguments:
>         pattern	-- return keys matching pattern (default: all keys)
>         secret	-- return only secret keys
> Your patch deviates from that pattern.

If it works (i haven't tested it), I'd say this patch actually is in
line with this pattern.  The main (only?) advantage i can see to using
SWIG at all over CFFI or ctypes is that it's possible to generate
bindings for other languages as well as python at the same time.

The closer we can bring the SWIG interfaces to the sensible defaults
that have already been provided for python, the better for all languages
that eventually will derive from the SWIG interface.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: </pipermail/attachments/20161205/9219b055/attachment.sig>

More information about the Gnupg-devel mailing list