[Tutor] question about ord

Python python at venix.com
Tue Nov 15 22:04:41 CET 2005


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 sure its easy, but i am missing how to do it.
> 
> thanks for any tips
> 
> sk
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-- 
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice:  603-653-8139
fax:    320-210-3409
-- 
Lloyd Kvam
Venix Corp



More information about the Tutor mailing list