Python 3.0 crashes displaying Unicode at interactive prompt

jhermann Juergen.Hermann at 1und1.de
Wed Dec 17 05:48:48 EST 2008


Assuming those survived the switch to 3.0, you can use site.py und
sys.displayhook to customize to the old behaviour (i.e. change it to a
version using ascii instead of repr). Since this only affects
interactive use, it's also no problem for portability of code, unlike
"solutions" like forcing the defaultencoding etc.



More information about the Python-list mailing list