[docs] [issue22374] Replace contextmanager example and improve explanation
Berker Peksag
report at bugs.python.org
Wed Jun 1 21:59:50 EDT 2016
Berker Peksag added the comment:
We also have swap_attr() and swap_item() helpers in Lib/test/support/__init__.py. I've used a simplified version of swap_attr() in my patch.
Since this is basically a document improvement I removed Python 2.7 from the versions field.
----------
keywords: +patch
nosy: +berker.peksag
stage: -> patch review
type: -> enhancement
versions: +Python 3.6 -Python 2.7, Python 3.4
Added file: http://bugs.python.org/file43095/issue22374.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22374>
_______________________________________
More information about the docs
mailing list