Return status from methods in socket class

2007-09-26 Thread Paul D Ainsworth
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? TIA, Paul. -- ht

Re: 4 byte integer

2007-05-11 Thread Paul D Ainsworth
> > Have a look at http://aspn.activestate.com/ASPN/Cookbook/Python/ > Recipe/113799 Brilliant - thank you :) -- http://mail.python.org/mailman/listinfo/python-list

4 byte integer

2007-05-11 Thread Paul D Ainsworth
Greetings everyone. I'm a relative newcomer to python and I have a technical problem. I want to split a 32 bit / 4 byte unsigned integer into 4 separate byte variables according to the following logic: - bit numbers 0..7 byte 1 bit numbers 8..15 byte 2 bit numbers 16..23 byte 3 bit numbers 24..