gpgme/lang/python/pyme
Justus Winter a324d0cffe python: Make result objects more robust.
Results returned by the GPGME are fragile, i.e. they are only valid
until the next operation is performed in the context.

We cannot arbitrarily constrain the lifetime of Python objects, we
therefore create deep copies of the results.

* lang/python/gpgme.i (gpgme_tofu_info_t): Turn these into a list.
(gpgme_*_result_t): Create deep copies of these objects.
* lang/python/helpers.c (pygpgme_wrap_fragile_result): New function.
* lang/python/helpers.h (pygpgme_wrap_fragile_result): New prototype.
* lang/python/pyme/results.py: New file.

Signed-off-by: Justus Winter <justus@g10code.com>
2016-06-16 14:19:17 +02:00
..
constants python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
__init__.py python: Improve the documentation. 2016-06-16 14:07:41 +02:00
callbacks.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
core.py python: Simplify wrapping glue. 2016-06-16 14:19:17 +02:00
errors.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
results.py python: Make result objects more robust. 2016-06-16 14:19:17 +02:00
util.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
version.py.in python: Get version information from the build system. 2016-06-16 14:07:41 +02:00