Brad Miller <[EMAIL PROTECTED]> added the comment:

For the example in unixclient.py using b'Hello World' works fine.  But for
the example in the socketserver documentation the strings to convert come
from argv[1:]

On Sat, Nov 8, 2008 at 5:48 AM, STINNER Victor <[EMAIL PROTECTED]>wrote:

>
> STINNER Victor <[EMAIL PROTECTED]> added the comment:
>
> Why not using bytes() instead of bytearray()? Eg. replace
> s.send('Hello, world') by s.send(b'Hello, world').
>
> ----------
> nosy: +haypo
>
> _______________________________________
> Python tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue4275>
> _______________________________________
>

Added file: http://bugs.python.org/file11966/unnamed

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4275>
_______________________________________
For the example in unixclient.py using b&#39;Hello World&#39; works fine. 
&nbsp;But for the example in the socketserver documentation the strings to 
convert come from argv[1:]<br><br><div class="gmail_quote">On Sat, Nov 8, 2008 
at 5:48 AM, STINNER Victor <span dir="ltr">&lt;<a href="mailto:[EMAIL 
PROTECTED]">[EMAIL PROTECTED]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1ex;"><br>
STINNER Victor &lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt; 
added the comment:<br>
<br>
Why not using bytes() instead of bytearray()? Eg. replace<br>
s.send(&#39;Hello, world&#39;) by s.send(b&#39;Hello, world&#39;).<br>
<br>
----------<br>
nosy: +haypo<br>
<div><div></div><div class="Wj3C7c"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue4275"; 
target="_blank">http://bugs.python.org/issue4275</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Brad 
Miller<br>Assistant Professor, Computer Science<br>Luther College<br>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to