Sockets

Andrew Markebo flognat at flognat.myip.org
Sun Jun 3 00:37:22 CEST 2001


You will probably get an exception raised when stuff like timeout,
connection error and so on happens.. Throw an eye at try: except:, and
the docs to see which exceptions are thrown (Hmm does the docs tell
this?) Or do as I do.. I found the errors the experimental way :-)

Insufficient memory, that can be hard to detect.. Probably the
programme just gets killed by the os? 

        /Andy

/ Adonis <deltapigz at telocity.com> wrote:
| *newbie question*
| 
| how can i check for errors when using the socket module?
| errors like: unable to connect; insufficient memory etc.
| 
| thanks in advance,
| 
| Adonis



More information about the Python-list mailing list