[Python-ideas] Stop displaying elements of bytes objects as printable ASCII characters in CPython 3

Wichert Akkerman wichert at wiggy.net
Thu Sep 11 07:58:57 CEST 2014


> On 11 Sep 2014, at 02:42, Chris Angelico <rosuav at gmail.com> wrote:
> 
> On Thu, Sep 11, 2014 at 4:35 AM, Chris Lasher <chris.lasher at gmail.com> wrote:
>> Unless printable representation of bytes objects appears as part of
>> the language specification for Python 3, it's an implementation
>> detail, thus, it is a candidate for change, especially if the BDFL
>> wills it so.
> 
> So this is all about the output of repr(), right? The question then
> is: How important is backward compatibility with repr? Will there be
> code breakage?

It’s likely to break doctests at least.

Wichert.



More information about the Python-ideas mailing list