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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22374>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to