Re: [Tutor] need some help with ascii hex

2005-08-18 Thread nephish
Alan G wrote: > Hi Francois, > >> I'm not a Tutor but I found this wich could help you: > > > If you are on the tutor list you are a tutor. We don't have any division > of role, everyone helps and everuone can ask for help. We are all equals. > >> To convert character data to integers, you can use

Re: [Tutor] need some help with ascii hex

2005-08-18 Thread francois schnell
On 19/08/05, Alan G <[EMAIL PROTECTED]> wrote: If you are on the tutor list you are a tutor. We don't have anydivisionof role, everyone helps and everuone can ask for help Ok I wasn't sure about the [Tutor] stuff  :) . We are allequals. Well, actually  this is not true:  it is well  known here in

Re: [Tutor] need some help with ascii hex

2005-08-18 Thread Alan G
Hi Francois, > I'm not a Tutor but I found this wich could help you: If you are on the tutor list you are a tutor. We don't have any division of role, everyone helps and everuone can ask for help. We are all equals. > To convert character data to integers, you can use the ord() > function, and

Re: [Tutor] need some help with ascii hex

2005-08-18 Thread francois schnell
Hello, I'm not a Tutor but I found this wich could help you: Source: http://mail.python.org/pipermail/tutor/2003-March/021123.html To convert character data to integers, you can use the ord()function, and to convert a number to hex notation you can use thehex() function.Example:>>> data ="" "

[Tutor] need some help with ascii hex

2005-08-18 Thread nephish
Hey there, i am using the serial module and trying to get some info over an RS232 port. Seems to be comming in ok, but when i print it out, its in ASCII instead of hex. is there a way to have python read serial in hex bytes instead of ASCII ? thanks. shawn ___