[issue4275] socketserver example code not correctly ported to py3k

Brad Miller report at bugs.python.org
Sat Nov 8 14:19:06 CET 2008


Brad Miller <bonelake at gmail.com> 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 <report at bugs.python.org>wrote:

>
> STINNER Victor <victor.stinner at haypocalc.com> 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 <report at bugs.python.org>
> <http://bugs.python.org/issue4275>
> _______________________________________
>

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

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4275>
_______________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20081108/cfdf71cf/attachment.txt>


More information about the Python-bugs-list mailing list