<br>I&#39;m not sure what makes you say that. There isn&#39;t anyone actually using bytes() right now, so what makes you think how it&#39;s created? Besides, lists can be created with list(&quot;foo&quot;) too, but they still repr() as [&#39;f&#39;, &#39;o&#39;, &#39;o&#39;]. 
<br><br><div><span class="gmail_quote">On 2/25/07, <b class="gmail_sendername">Greg Ewing</b> &lt;<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>&gt; 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>&gt; Seeing that, I made a patch that makes bytes_repr output a bytes literal,<br><br>I&#39;m not sure that&#39;s a good idea. Any given bytes object<br>is as likely to have been constructed using bytes(...)
<br>as using b&quot;...&quot;. There&#39;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 &lt;<a href="mailto:thomas@python.org">thomas@python.org</a>&gt;<br><br>Hi! I&#39;m a .signature virus! copy me into your .signature file to help me spread!