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'Hello World' works fine.
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"><<a href="mailto:[EMAIL
PROTECTED]">[EMAIL PROTECTED]</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex;"><br>
STINNER Victor <<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>>
added the comment:<br>
<br>
Why not using bytes() instead of bytearray()? Eg. replace<br>
s.send('Hello, world') by s.send(b'Hello, world').<br>
<br>
----------<br>
nosy: +haypo<br>
<div><div></div><div class="Wj3C7c"><br>
_______________________________________<br>
Python tracker <<a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>><br>
<<a href="http://bugs.python.org/issue4275"
target="_blank">http://bugs.python.org/issue4275</a>><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