Re: Hexadecimal Conversion in Python

2005-11-02 Thread Peter Hansen
DaBeef wrote: > I have been coding for 5 years. This is a proprietary protocol, so it > is difficult converting. I did this in java but was just able to > convert a stream. What exactly did you do in Java to get the results you want? Python's library is certainly *not* "limited" in this area,

Re: Hexadecimal Conversion in Python

2005-11-02 Thread James Stroud
On Wednesday 02 November 2005 12:53, DaBeef wrote: > I have been coding for 5 years. This is a proprietary protocol, so it > is difficult converting. I did this in java but was just able to > convert a stream. I looked through the Python library, I am more or > less getting backa string represe

Re: Hexadecimal Conversion in Python

2005-11-02 Thread Bengt Richter
On 2 Nov 2005 12:53:45 -0800, "DaBeef" <[EMAIL PROTECTED]> wrote: >I have been coding for 5 years. This is a proprietary protocol, so it >is difficult converting. I did this in java but was just able to >convert a stream. I looked through the Python library, I am more or >less getting backa st

Re: Hexadecimal Conversion in Python

2005-11-02 Thread Grant Edwards
On 2005-11-02, DaBeef <[EMAIL PROTECTED]> wrote: > I have been coding for 5 years. This is a proprietary protocol, so it > is difficult converting. Eh? What's so difficult about it? > I did this in java but was just able to convert a stream. Yet you seem unable to describe what it is you're t

Re: Hexadecimal Conversion in Python

2005-11-02 Thread Bengt Richter
On 2 Nov 2005 12:28:26 -0800, "DaBeef" <[EMAIL PROTECTED]> wrote: >Hello, I am reading in a socket message from a server and am only >receiving this ''. Now obviously it is in the wrong format. How >would I convert these bys in Python, I have looked everywhere but I do >not see much document

Re: Hexadecimal Conversion in Python

2005-11-02 Thread DaBeef
I have been coding for 5 years. This is a proprietary protocol, so it is difficult converting. I did this in java but was just able to convert a stream. I looked through the Python library, I am more or less getting backa string represented as a "" So now I want to convert it to all the h

Re: Hexadecimal Conversion in Python

2005-11-02 Thread Fredrik Lundh
"DaBeef" wrote:/ > it is returning data such as 0x04. I am new to python so this is a > pain for me, learning to do this in a language whose llibrary is > somewhat limited. you make no sense at all. what are you receiving data from? how are you receiving it? what library are you using? what'

Re: Hexadecimal Conversion in Python

2005-11-02 Thread Stefan Näwe
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

Re: Hexadecimal Conversion in Python

2005-11-02 Thread DaBeef
it is returning data such as 0x04. I am new to python so this is a pain for me, learning to do this in a language whose llibrary is somewhat limited. 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 Thank-y

Re: Hexadecimal Conversion in Python

2005-11-02 Thread Stefan Näwe
DaBeef wrote: > Hello, I am reading in a socket message from a server and am only > receiving this ''. Now obviously it is in the wrong format. How > would I convert these bys in Python, I have looked everywhere but I do > not see much documentation on converting ptyhon types to other data >