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
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
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
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
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
_