Re: [Tutor] question about ord

2005-11-15 Thread nephish
lf > Of nephish > Sent: Wednesday, 16 November 2005 9:46 a.m. > To: tutor > Subject: [Tutor] question about ord > > > Hey there, > i am using a script to change a byte into an integer > like this: > a = the byte > value = ord(a) > > but

Re: [Tutor] question about ord

2005-11-15 Thread Python
chr(value) >>> chr(ord('a')) == 'a' True On Tue, 2005-11-15 at 14:46 -0600, nephish wrote: > Hey there, > i am using a script to change a byte into an integer > like this: > a = the byte > value = ord(a) > > but i cant find the operation that can change it back to a byte. > i am

Re: [Tutor] question about ord

2005-11-15 Thread Liam Clarke-Hutchinson
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of nephish Sent: Wednesday, 16 November 2005 9:46 a.m. To: tutor Subject: [Tutor] question about ord Hey there, i am using a script to change a byte into an integer like this: a = the byte value = ord(a) but i cant find the

Re: [Tutor] question about ord

2005-11-15 Thread Kent Johnson
nephish wrote: > Hey there, > i am using a script to change a byte into an integer > like this: > a = the byte > value = ord(a) > > but i cant find the operation that can change it back to a byte. chr() See http://docs.python.org/lib/built-in-funcs.html Kent -- http://www.ke

[Tutor] question about ord

2005-11-15 Thread nephish
Hey there, i am using a script to change a byte into an integer like this: a = the byte value = ord(a) but i cant find the operation that can change it back to a byte. i am sure its easy, but i am missing how to do it. thanks for any tips sk _