Terry J. Reedy added the comment:

To me, this cries out for a public context manager ( believe there is a public 
one in test.support, or something), so one can write

with stdout(ob):
  print(stuff)

I am not sure, though, where the C.M.s should live.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24595>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to