Python coding problem.
Chris Gonnerman
chris.gonnerman at usa.net
Thu Apr 5 08:45:07 EDT 2001
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.
More information about the Python-list
mailing list