[New-bugs-announce] [issue4745] socket.send obscure error message

John Robinson report at bugs.python.org
Thu Dec 25 02:46:57 CET 2008


New submission from John Robinson <greywine at gmail.com>:

When using the socket module and performing a socket.send('hello
world'), the error returned is:
Traceback (most recent call last):
  File "C:\Python30\testclient.py", line 12, in <module>
    s.send('Hello world')               # send the data
TypeError: send() argument 1 must be string or buffer, not str

TypeError should refer to byte not string.

----------
messages: 78278
nosy: Luther
severity: normal
status: open
title: socket.send obscure error message
type: behavior
versions: Python 3.0

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


More information about the New-bugs-announce mailing list