A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/092167.html below:

Python coding problem.

Python coding problem. 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

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