where to find information about errors/exceptions in socket.py
Steve Holden
steve at holdenweb.com
Fri Oct 7 03:36:04 EDT 2005
mirandacascade at yahoo.com wrote:
> Version of python: 2.4
> O/S: Win2K
>
> I will be writing some python scripts to do some client-side
> programming that involves socket.py. I expect that I will be making
> calls to the following methods/functions:
>
> connect_ex()
> setsockopt()
> sendall()
> recv()
> close()
>
> Where can one find information about whether the functions/methods
> above return error codes that provide some indication as to whether the
> function/method succeeded? Is there an exception class for handling
> exceptions raised in socket.py? If so, where can one find information
> about it?
>
> I consulted the docstrings and didn't find much about return codes or
> exception classes. Also looked at the Lutz "Programming Python"
> text...it devotes several pages to socket programming, but I didn't
> observe much with regard to error/exception handling.
>
I'd suggest reading the documentation myself:
http://docs.python.org/lib/module-socket.html
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/
More information about the Python-list
mailing list