Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError raised on Chapter 14/listing14-1.py #4

Open
hieloz opened this issue Apr 2, 2018 · 0 comments
Open

TypeError raised on Chapter 14/listing14-1.py #4

hieloz opened this issue Apr 2, 2018 · 0 comments

Comments

@hieloz
Copy link

hieloz commented Apr 2, 2018

Socket methods such as .send expect a bytes object as the data to be sent, not a string object. So in line 13 , c.send(b'Thank you for connecting') bytes is needed.

@hieloz hieloz changed the title typeError raised on Chapter 14/listing14-1.py TypeError raised on Chapter 14/listing14-1.py Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant