Sockets

Andrew Markebo flognat at flognat.myip.org
Sat Jun 2 18:37:22 EDT 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