Return status from methods in socket class

Fredrik Lundh fredrik at
Wed Sep 26 13:16:11 CEST 2007

Paul D Ainsworth wrote:

> As part of a debugging investigation I would like to be able to display the 
> return status from various methods in the socket class. The methods I'm 
> using are accept, bind, connect, listen, send, recv although not necessarily 
> in that order.
> Is this possible and if so, how?

umm.  don't they all throw exceptions if something goes wrong?


More information about the Python-list mailing list