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
..
2016-05-27 17:24:12 +02:00
2016-05-31 16:22:31 +02:00
2016-05-19 11:09:45 +02:00
2016-05-27 17:24:12 +02:00
2016-05-23 15:43:55 +02:00
2016-05-19 11:09:45 +02:00
2016-05-19 11:09:45 +02:00
2016-05-23 15:43:55 +02:00
2016-05-27 17:24:12 +02:00
2016-06-01 12:50:32 +02:00
2016-05-19 11:09:45 +02:00
2016-05-23 15:43:55 +02:00
2016-05-27 17:24:12 +02:00
2016-05-31 16:22:31 +02:00