[New-bugs-announce] [issue3550] Socket Python 3k Documentation failure OR Unicode string is not supported with socket.send

Andrew R. report at bugs.python.org
Thu Aug 14 04:24:20 CEST 2008


New submission from Andrew R. <ajr1991 at comcast.net>:

I am confused by the socket docs for Python 3000. It says to pass a
string through socket.send or socket.sendall, however, it does not seem
to account for the ASCII to Unicode transition. Trying to send an
ordinary Python 3k string through socket.send fails with a TypeError
stating that the first arg must be bytes or buffers but not a str.

Besides the misdocumented sockets, I would think it would be easier to
translate a Unicode string to ASCII, however, I fear this might violate
the "Explicit is better than implicit" rule and RFC tables.

----------
assignee: georg.brandl
components: Documentation
messages: 71105
nosy: georg.brandl, st33med
severity: normal
status: open
title: Socket Python 3k Documentation failure OR Unicode string is not supported with socket.send
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3550>
_______________________________________


More information about the New-bugs-announce mailing list