gpgme/lang/python/pyme
Justus Winter ebfe2300c3 python: Fix object deallocation.
Handing a reference to the wrapper object created a non-trivial
circular reference that Pythons garbage collector is unable to break.
Explicitly break it by using a weak reference.

* lang/python/helpers.c (pygpgme_stash_callback_exception): Retrieve
object from weak reference.
* lang/python/pyme/core.py (Context.__del__): Free status callback.
(Context.set_passphrase_cb): Use a weak reference.
(Context.set_progress_cb): Likewise.
(Context.set_status_cb): Likewise.
(Context.op_edit): Likewise.

Signed-off-by: Justus Winter <justus@gnupg.org>
2016-05-27 12:25:59 +02:00
..
constants python: Rename bindings. 2016-05-10 13:19:26 +02:00
__init__.py python: Clean up examples. 2016-05-17 14:22:22 +02:00
callbacks.py python: Delete trailing whitespace. 2016-05-10 13:30:30 +02:00
core.py python: Fix object deallocation. 2016-05-27 12:25:59 +02:00
errors.py python: Make all GnuPG errors available. 2016-05-24 18:00:16 +02:00
util.py python: Move the base wrapper class. 2016-05-24 18:00:16 +02:00
version.py python: Rename bindings. 2016-05-10 13:19:26 +02:00