Offhand I can't see the problem. Could you post the code you are using? Also, a good debugging technique would be to insert a print statement before the offending line of code, saying this: print `tcpCliSock` just to see what it actually is. ----- Original Message ----- From: <The_Polymorph at rocketmail.com> Subject: Python coding problem. > Hi all. > > I am just learning python and I have a question. I bought 'Core Python Programming' by Wesley Chun. If anyone has it, on page 575 ( networking ) I am usin the following: > > data = tcpCliSock.recv(BUFSIZ) > > The error is 'Attribute error:'int' object has no attribute 'recv'. > > If need be I can post the code or you can view it from: > > http://starship.python.net/crew/wesc/cpp > > It is under the errata section ( at the bottom under code ) Chapt.16 I am using a win32 machine with python 2.0 > > Thanks, Katie.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4