Hexadecimal Conversion in Python
Stefan Näwe
stefan at naewe.de
Wed Nov 2 15:44:06 EST 2005
DaBeef wrote:
> it is returning data such as 0x04.
But you need to know what kind of data the other side is sending,
i.e. what kind of protocol it speaks.
> I am new to python
New and starting with socket/network programming ?
Brave!
> so this is a
> pain for me, learning to do this in a language whose llibrary is
> somewhat limited.
You mean Pythons' library is limited?
You know nothing...
> >But instead I receieve .... So I wnat to convert to
> the original data. Also can you define a constant in Python such as
> #define value 0x04
You should look here:
http://docs.python.org/
And probably here, too:
http://diveintopython.org/toc/index.html
What does your 'socket receiver' look like ?
Stefan
--
Stefan Näwe
stefan_AT_naewe_DOT_de
More information about the Python-list
mailing list