The issue can be regarded as not a bug since bpython sets the stdout.
** Changed in: bpython (Ubuntu)
Status: New => Invalid
** Changed in: bpython (Ubuntu)
Assignee: (unassigned) => Finn Årup Nielsen (fn)
--
You received this bug notification because you are a member of Ubuntu
Bug
Thanks, I see that it is not really a bug.
>>> import sys
>>> i, o, e = sys.stdin, sys.stdout, sys.stderr
>>> reload(sys)
>>> print(1)
>>> sys.stdout = o
>>> print(2)
2
I will change the status.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed t
This has nothing to do with sys.setdefaultencoding(), it's because the
sys module is reloaded. bpython sets sys.stdout, sys.stderr and
sys.stdin to its own objects (needed because of the use of curses), but
the reload of sys resets those attributes back to its original values.
I don't really agree