[Tutor] question about ord

Kent Johnson kent37 at tds.net
Tue Nov 15 22:03:46 CET 2005


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.kentsjohnson.com



More information about the Tutor mailing list