gpgme/lang/python/pyme
Justus Winter e3c5913a33 python: Implement the context manager protocol.
* lang/python/pyme/core.py (Context.__del__): Make function
idemptotent.
(Context.{__enter__,__exit__}): Implement the context manager
protocol.
(Data.__del__): Make function idemptotent, drop debug print.
(Data.{__enter__,__exit__}): Implement the context manager
protocol.
* lang/python/tests/t-idiomatic.py: Demonstrate this.

Signed-off-by: Justus Winter <justus@g10code.com>
2016-06-08 13:44:09 +02:00
..
constants python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
__init__.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
callbacks.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
core.py python: Implement the context manager protocol. 2016-06-08 13:44:09 +02:00
errors.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
util.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
version.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00