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 that it is a bug. Either don't reload sys or save the values of sys.stdin, sys.stderr and sys.stdout and set them again after the reload. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/633027 Title: bpython doesn't show output after utf-8 default encoding -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs