Concrete example is bpython, this is what happens:
$ bpython
bpython version 0.16 on top of Python 2.7.11+
>>> import sys
>>> sys.stdout
<bpython.curtsiesfrontend.coderunner.FakeOutput object at 0x7f6a156c0b50>
>>> import beeprint
>>> sys.stdout<open file '<stdout>', mode 'w' at 0x7f6a1a2a6150>
I don't know why sys.stdout is changed at all by a simple import (it shouldn't), but if you do, chain the existing value.
Concrete example is bpython, this is what happens:
I don't know why sys.stdout is changed at all by a simple import (it shouldn't), but if you do, chain the existing value.