<br>I'm not sure what makes you say that. There isn't anyone actually using bytes() right now, so what makes you think how it's created? Besides, lists can be created with list("foo") too, but they still repr() as ['f', 'o', 'o'].
<br><br><div><span class="gmail_quote">On 2/25/07, <b class="gmail_sendername">Greg Ewing</b> <<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Georg Brandl wrote:<br><br>> Seeing that, I made a patch that makes bytes_repr output a bytes literal,<br><br>I'm not sure that's a good idea. Any given bytes object<br>is as likely to have been constructed using bytes(...)
<br>as using b"...". There's no way of being sure whether<br>displaying it as a string is appropriate or not.<br><br>I suppose you could scan it for non-ascii codes or<br>something, but that seems a bit dwimish.
<br><br>--<br>Greg<br>_______________________________________________<br>Python-3000 mailing list<br><a href="mailto:Python-3000@python.org">Python-3000@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/python-3000">
http://mail.python.org/mailman/listinfo/python-3000</a><br>Unsubscribe: <a href="http://mail.python.org/mailman/options/python-3000/thomas%40python.org">http://mail.python.org/mailman/options/python-3000/thomas%40python.org
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Thomas Wouters <<a href="mailto:thomas@python.org">thomas@python.org</a>><br><br>Hi! I'm a .signature virus! copy me into your .signature file to help me spread!