Home GnuPG
Diffusion GPGME 8196edf9ca5c

python: Wrap file-like objects on demand.
8196edf9ca5cUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

python: Wrap file-like objects on demand.

* lang/python/gpgme.i (gpgme_data_t): Use new function to create
wrapper objects if necessary, and deallocate them after the function
call.
* lang/python/helpers.c (object_to_gpgme_data_t): New function.
* lang/python/helpers.h (object_to_gpgme_data_t): New prototype.
* lang/python/tests/Makefile.am (pytests): Add new test.
* lang/python/tests/t-idiomatic.py: New file.
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Jun 6 2016, 1:11 PM
Parents
rM26c3accc95ab: python: Move helper function.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rM8196edf9ca5c: python: Wrap file-like objects on demand. (authored by Justus Winter <justus@g10code.com>).Jun 6 2016, 2:16 PM