Movatterモバイル変換


[0]ホーム

URL:


Python coding problem.

Chris Gonnermanchris.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 statementbefore 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 PythonProgramming' by Wesley Chun. If anyone has it, on page 575 ( networking ) Iam 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  Iam using a win32 machine with python 2.0>>  Thanks, Katie.


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp