[New-bugs-announce] [issue27087] unable to use socket send and sendall due to type error
Nick McElwaine
report at bugs.python.org
Sun May 22 16:08:53 EDT 2016
New submission from Nick McElwaine:
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'
----------
components: Extension Modules
messages: 266102
nosy: Dhruve
priority: normal
severity: normal
status: open
title: unable to use socket send and sendall due to type error
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27087>
_______________________________________
More information about the New-bugs-announce
mailing list