This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: socket.send obscure error message
Type: behavior Stage:
Components: Versions: Python 3.0
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 2022-04-11 14:56 by admin. 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\", 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.
Date User Action Args
2022-04-11 14:56:43adminsetgithub: 48995
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