[docs] [issue22374] Replace contextmanager example and improve explanation

Serhiy Storchaka report at bugs.python.org
Thu Jun 2 15:04:47 EDT 2016


Serhiy Storchaka added the comment:

swap_attr() looks too general. I think something more concrete would be better. But the documentation already contain other examples for contextmanager. closing() is good example, and redirect_stdout() would be good example.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22374>
_______________________________________


More information about the docs mailing list