[Bug 633027] Re: bpython doesn't show output after utf-8 default encoding

2010-12-06 Thread Finn Årup Nielsen
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 to Ubuntu.

[Bug 633027] Re: bpython doesn't show output after utf-8 default encoding

2010-12-06 Thread Finn Årup Nielsen
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 633027] Re: bpython doesn't show output after utf-8 default encoding

2010-12-04 Thread Andreas Stührk
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