classification
Title: socket.send obscure error message
Type: behavior Stage:
Components: Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Luther, benjamin.peterson, georg.brandl
Priority: normal Keywords:

Created on 2008-12-25 01:46 by Luther, last changed 2008-12-27 16:10 by georg.brandl. This issue is now closed.

Messages (3)
msg78278 - (view) Author: John Robinson (Luther) Date: 2008-12-25 01:46
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.
msg78334 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-12-27 02:58
Fixed in r67929.
msg78368 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-27 16:10
Benjamin, please continue mentioning issue numbers in commit messages,
even if it's a trivial fix like this one.
History
Date User Action Args
2008-12-27 16:10:31georg.brandlsetnosy: + georg.brandl
messages: + msg78368
2008-12-27 02:58:43benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg78334
nosy: + benjamin.peterson
2008-12-25 01:46:56Luthercreate