> Your code put me right on track.
>
> - From that point, I crafted the following code.
>
> What is confusing is how to take the captured character and 
> transform it
> into a 3 digit hex value.

In general I prefer to use string formatting to convert into hex 
format.

print "%3X% % myValue

you can play around with the length specifier,
left/right formatting etc etc. Think sprintf in C...

Alan G.


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to