Ned Batchelder
7d964b12db
Context managers need to clean up properly
...
An @contextmanager will raise an exception from its yield statement if
an exception happens in the with-block that uses it. If the context
manager needs to do clean up, it should do it even if an exception is
raised, so it needs to be done in a finally clause.
2019-04-17 13:14:48 -04:00
..
2019-04-05 00:57:46 -04:00
2019-04-05 00:57:46 -04:00
2012-06-18 13:21:06 -04:00
2017-08-07 15:34:21 -04:00
2014-11-10 11:00:11 -08:00
2019-03-02 16:06:46 -05:00
2014-12-10 16:46:12 -05:00
2018-09-10 16:30:13 +05:00
2017-05-30 16:04:54 -04:00
2019-04-17 13:14:48 -04:00
2017-05-30 16:04:54 -04:00
2017-05-30 16:04:54 -04:00
2017-05-30 16:04:54 -04:00
2017-05-30 16:04:54 -04:00
2017-05-30 16:04:54 -04:00
2018-09-12 14:39:11 -04:00
2017-10-05 15:37:01 -04:00
2019-02-19 11:24:21 -05:00
2016-01-28 14:05:20 -05:00
2017-09-27 07:53:39 -04:00
2018-10-19 13:25:08 -04:00
2014-11-10 10:59:44 -08:00
2014-11-10 11:00:11 -08:00
2018-09-17 16:48:14 -04:00
2018-06-05 13:59:09 -04:00
2014-01-31 22:08:08 +00:00
2019-01-08 15:41:24 -05:00