[issue21954] str(b'text') returns "b'text'" in interpreter

2014-07-10 Thread Ned Deily
Ned Deily added the comment: This is as expected. In Python 3, b'text' represents a bytes object. "Passing a bytes object to str() without the encoding or errors arguments falls under the first case of returning the informal string representation". Also, in the case of simple bytes objects, t

[issue21954] str(b'text') returns "b'text'" in interpreter

2014-07-10 Thread Dev Player
New submission from Dev Player: str(b'text') returns double quoted item with b prefix within the str() object as so: "b'text'" in python interpreter. It seems the "b" shouldn't be within the outter quotes or apart of the str() instance data. Is this a bug or new syntax? I personally haven't se