.. and non-ascii bytestrings could also fail for ``__repr__`` in Python 2.x - there is a reason why ``repr`` returns ASCII for all built-in container types. In console the correct encoding is sys.stdout.encoding, and if we e.g. return utf8-encoded bytestrings in ``__repr__`` and stdout encoding is not utf8 (this is often the case e.g. in non-English Windows) then REPL will still be broken.