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.

Author Dhruve
Recipients Dhruve
Date 2016-05-22.20:08:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463947733.27.0.680379704915.issue27087@psf.upfronthosting.co.za>
In-reply-to
Content
import socket               # Import socket module
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)  
s.connect(hostname,port) # this works
message = 'text'
s.sendall(message) TypeError: a bytes-like object is required, not 'str'

    s.sendall(message)
TypeError: a bytes-like object is required, not 'str'
History
Date User Action Args
2016-05-22 20:08:53Dhruvesetrecipients: + Dhruve
2016-05-22 20:08:53Dhruvesetmessageid: <1463947733.27.0.680379704915.issue27087@psf.upfronthosting.co.za>
2016-05-22 20:08:53Dhruvelinkissue27087 messages
2016-05-22 20:08:53Dhruvecreate